diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-01-09 20:12:33 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-01-10 23:12:18 +0100 |
commit | 24be30de6405fbcc5fd978b915def2722bf8026e (patch) | |
tree | 4ee06044919a6129ecb00599d125ce7839dc496b | |
parent | 0cc88646877aea8fc2adb2244f6019707df2082a (diff) | |
download | ffmpeg-24be30de6405fbcc5fd978b915def2722bf8026e.tar.gz |
ljpegdec: Fix the left column of rgb24 decoding
Fixes Ticket894
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/mjpegdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mjpegdec.c b/libavcodec/mjpegdec.c index ebe7af5887..458d132fce 100644 --- a/libavcodec/mjpegdec.c +++ b/libavcodec/mjpegdec.c @@ -730,7 +730,7 @@ static int ljpeg_decode_rgb_scan(MJpegDecodeContext *s, int nb_components, int p for(i=0; i<3; i++) top[i] = left[i]= topleft[i]= 1 << (s->bits - 1); } - if (mb_y == resync_mb_y || mb_y == resync_mb_y+1 && mb_x < resync_mb_x) + if (mb_y == resync_mb_y || mb_y == resync_mb_y+1 && mb_x < resync_mb_x || !mb_x) modified_predictor = 1; for (i=0;i<nb_components;i++) { |