[FFmpeg-trac] #3929(avcodec:open): mjpeg: vertical line at the right side
FFmpeg
trac at avcodec.org
Sun Sep 7 20:38:33 CEST 2014
#3929: mjpeg: vertical line at the right side
-------------------------------------+-------------------------------------
Reporter: ami_stuff | Owner:
Type: defect | Status: open
Priority: important | Component: avcodec
Version: git-master | Resolution:
Keywords: mjpeg | Blocked By:
regression | Reproduced by developer: 1
Blocking: |
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Comment (by ubitux):
This seems to do the trick:
{{{
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]];
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/3929#comment:2>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list