ffmpeg | branch: master | Clément Bœsch <[email protected]> | Sat Sep 13 20:25:27 2014 +0200| [b96d864fd685aa1f661a5f8666224129d68b8eaf] | committer: Michael Niedermayer
avcodec/mjpegdec: Fix chroma width rounding Fixes vertical line at the right side Fixes Ticket 3929 Signed-off-by: Michael Niedermayer <[email protected]> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b96d864fd685aa1f661a5f8666224129d68b8eaf --- libavcodec/mjpegdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/mjpegdec.c b/libavcodec/mjpegdec.c index 827c24d..4d17c5f 100644 --- a/libavcodec/mjpegdec.c +++ b/libavcodec/mjpegdec.c @@ -2127,7 +2127,7 @@ the_end: if (!(s->upscale_v & (1<<p))) continue; if (p==1 || p==2) - w >>= hshift; + w = FF_CEIL_RSHIFT(w, hshift); for (i = s->height - 1; i; i--) { uint8_t *src1 = &((uint8_t *)s->picture_ptr->data[p])[i / 2 * s->linesize[p]]; uint8_t *src2 = &((uint8_t *)s->picture_ptr->data[p])[(i + 1) / 2 * s->linesize[p]]; _______________________________________________ ffmpeg-cvslog mailing list [email protected] http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog
