Commit 2f2b3f33 authored by cehoyos's avatar cehoyos

Fix blend_subrect for some subrects positioned on odd rows.

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


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17014 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent b7a8f150
...@@ -498,8 +498,8 @@ static void blend_subrect(AVPicture *dst, const AVSubtitleRect *rect, int imgw, ...@@ -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;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment