From 676ef505e620ac0313346343441f83067c0ed97d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bj=C3=B6rn=20Axelsson?= Date: Thu, 5 Feb 2009 23:07:24 +0000 Subject: [PATCH] Fix blend_subrect for subrects positioned on odd rows. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Patch by Björn Axelsson gecko A acc D umu D se Originally committed as revision 17013 to svn://svn.ffmpeg.org/ffmpeg/trunk --- ffplay.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ffplay.c b/ffplay.c index 6697e9c69..ad98f0a22 100644 --- a/ffplay.c +++ b/ffplay.c @@ -495,6 +495,8 @@ static void blend_subrect(AVPicture *dst, const AVSubtitleRect *rect, int imgw, lum[0] = ALPHA_BLEND(a, lum[0], y, 0); cb[0] = ALPHA_BLEND(a >> 2, cb[0], u, 0); cr[0] = ALPHA_BLEND(a >> 2, cr[0], v, 0); + p++; + lum++; } p += wrap3 + (wrap3 - dstw * BPP); lum += wrap + (wrap - dstw - dstx); -- 2.34.1