mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
ljpegdec: Fix the left column of rgb24 decoding
Fixes Ticket894 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
0cc8864687
commit
24be30de64
@ -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++) {
|
||||
|
Loading…
Reference in New Issue
Block a user