mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-20 14:20:51 +00:00
Merge commit 'a030279a67ef883df8cf3707774656fa1be81078'
* commit 'a030279a67ef883df8cf3707774656fa1be81078': ljpeg: use the correct number of components in yuv Conflicts: libavcodec/mjpegdec.c See: b2e57eb5a3cb9d5dfab601077fa0edee91e06ca5 Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
3b071a4390
@ -853,8 +853,8 @@ static int ljpeg_decode_rgb_scan(MJpegDecodeContext *s, int nb_components, int p
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int ljpeg_decode_yuv_scan(MJpegDecodeContext *s, int nb_components, int predictor,
|
||||
int point_transform)
|
||||
static int ljpeg_decode_yuv_scan(MJpegDecodeContext *s, int predictor,
|
||||
int point_transform, int nb_components)
|
||||
{
|
||||
int i, mb_x, mb_y;
|
||||
int bits= (s->bits+7)&~7;
|
||||
@ -1297,7 +1297,9 @@ next_field:
|
||||
if ((ret = ljpeg_decode_rgb_scan(s, nb_components, predictor, point_transform)) < 0)
|
||||
return ret;
|
||||
} else {
|
||||
if ((ret = ljpeg_decode_yuv_scan(s, nb_components, predictor, point_transform)) < 0)
|
||||
if ((ret = ljpeg_decode_yuv_scan(s, predictor,
|
||||
point_transform,
|
||||
nb_components)) < 0)
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user