From 4606a05979f48aea4cef5125cb885405c9903eee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Axelsson?= Date: Thu, 5 Feb 2009 23:10:05 +0000 Subject: [PATCH] Fix blend_subrect for some subrects positioned on odd rows. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Patch by Björn Axelsson gecko A acc D umu D se Originally committed as revision 17014 to svn://svn.ffmpeg.org/ffmpeg/trunk --- ffplay.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ffplay.c b/ffplay.c index ad98f0a22c..946f4cd614 100644 --- a/ffplay.c +++ b/ffplay.c @@ -498,8 +498,8 @@ static void blend_subrect(AVPicture *dst, const AVSubtitleRect *rect, int imgw, p++; lum++; } - p += wrap3 + (wrap3 - dstw * BPP); - lum += wrap + (wrap - dstw - dstx); + p += wrap3 - dstw * BPP; + lum += wrap - dstw - dstx; cb += dst->linesize[1] - width2 - skip2; cr += dst->linesize[2] - width2 - skip2; }