[FFmpeg-cvslog] r17088 - trunk/ffplay.c
superdump
subversion
Mon Feb 9 01:27:04 CET 2009
Author: superdump
Date: Mon Feb 9 01:27:04 2009
New Revision: 17088
Log:
Fix blend_subrect for even-width subrects positioned on odd columns
Patch by Bj?rn Axelsson ( gecko A acc D umu D se )
Modified:
trunk/ffplay.c
Modified: trunk/ffplay.c
==============================================================================
--- trunk/ffplay.c Mon Feb 9 01:18:26 2009 (r17087)
+++ trunk/ffplay.c Mon Feb 9 01:27:04 2009 (r17088)
@@ -449,7 +449,7 @@ static void blend_subrect(AVPicture *dst
cb = dst->data[1] + (dsty >> 1) * dst->linesize[1];
cr = dst->data[2] + (dsty >> 1) * dst->linesize[2];
- width2 = (dstw + 1) >> 1;
+ width2 = ((dstw + 1) >> 1) + (dstx & ~dstw & 1);
skip2 = dstx >> 1;
wrap = dst->linesize[0];
wrap3 = rect->pict.linesize[0];
More information about the ffmpeg-cvslog
mailing list