Commit 676ef505 authored by Björn Axelsson's avatar Björn Axelsson Committed by Carl Eugen Hoyos

Fix blend_subrect for subrects positioned on odd rows.

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

Originally committed as revision 17013 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 0a861b6f
...@@ -495,6 +495,8 @@ static void blend_subrect(AVPicture *dst, const AVSubtitleRect *rect, int imgw, ...@@ -495,6 +495,8 @@ static void blend_subrect(AVPicture *dst, const AVSubtitleRect *rect, int imgw,
lum[0] = ALPHA_BLEND(a, lum[0], y, 0); lum[0] = ALPHA_BLEND(a, lum[0], y, 0);
cb[0] = ALPHA_BLEND(a >> 2, cb[0], u, 0); cb[0] = ALPHA_BLEND(a >> 2, cb[0], u, 0);
cr[0] = ALPHA_BLEND(a >> 2, cr[0], v, 0); cr[0] = ALPHA_BLEND(a >> 2, cr[0], v, 0);
p++;
lum++;
} }
p += wrap3 + (wrap3 - dstw * BPP); p += wrap3 + (wrap3 - dstw * BPP);
lum += wrap + (wrap - dstw - dstx); lum += wrap + (wrap - dstw - dstx);
......
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