summaryrefslogtreecommitdiff
path: root/ffplay.c
diff options
context:
space:
mode:
authorBjörn Axelsson <gecko@acc.umu.se>2009-02-09 00:27:04 +0000
committerRobert Swain <robert.swain@gmail.com>2009-02-09 00:27:04 +0000
commitf54b31b9ef1b3b4f6271ae7d58cbea398a4f5576 (patch)
tree9e68e64f95f7d78f01351ddff1dfc83404408e51 /ffplay.c
parentffe2c09d4658882e5debabb9ab59ce6b3c9b7591 (diff)
Fix blend_subrect for even-width subrects positioned on odd columns
Patch by Björn Axelsson ( gecko A acc D umu D se ) Originally committed as revision 17088 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffplay.c')
-rw-r--r--ffplay.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ffplay.c b/ffplay.c
index 3a22c45a46..9367f64101 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -449,7 +449,7 @@ static void blend_subrect(AVPicture *dst, const AVSubtitleRect *rect, int imgw,
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];