1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

Fix blend_subrect for some subrects positioned on odd rows.

Patch by Björn Axelsson gecko A acc D umu D se

Originally committed as revision 17014 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Björn Axelsson 2009-02-05 23:10:05 +00:00 committed by Carl Eugen Hoyos
parent 676ef505e6
commit 4606a05979

View File

@ -498,8 +498,8 @@ static void blend_subrect(AVPicture *dst, const AVSubtitleRect *rect, int imgw,
p++; p++;
lum++; lum++;
} }
p += wrap3 + (wrap3 - dstw * BPP); p += wrap3 - dstw * BPP;
lum += wrap + (wrap - dstw - dstx); lum += wrap - dstw - dstx;
cb += dst->linesize[1] - width2 - skip2; cb += dst->linesize[1] - width2 - skip2;
cr += dst->linesize[2] - width2 - skip2; cr += dst->linesize[2] - width2 - skip2;
} }