mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
avcodec/mjpegdec: make "unknown colorspace" error more informative
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
61c68000ed
commit
cb026ac303
@ -1473,7 +1473,7 @@ static int mjpeg_decode_app(MJpegDecodeContext *s)
|
|||||||
skip_bits(&s->gb, 16); /* unknown always 0? */
|
skip_bits(&s->gb, 16); /* unknown always 0? */
|
||||||
skip_bits(&s->gb, 16); /* unknown always 0? */
|
skip_bits(&s->gb, 16); /* unknown always 0? */
|
||||||
skip_bits(&s->gb, 16); /* unknown always 0? */
|
skip_bits(&s->gb, 16); /* unknown always 0? */
|
||||||
switch (get_bits(&s->gb, 8)) {
|
switch (i=get_bits(&s->gb, 8)) {
|
||||||
case 1:
|
case 1:
|
||||||
s->rgb = 1;
|
s->rgb = 1;
|
||||||
s->pegasus_rct = 0;
|
s->pegasus_rct = 0;
|
||||||
@ -1483,7 +1483,7 @@ static int mjpeg_decode_app(MJpegDecodeContext *s)
|
|||||||
s->pegasus_rct = 1;
|
s->pegasus_rct = 1;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
av_log(s->avctx, AV_LOG_ERROR, "unknown colorspace\n");
|
av_log(s->avctx, AV_LOG_ERROR, "unknown colorspace %d\n", i);
|
||||||
}
|
}
|
||||||
len -= 9;
|
len -= 9;
|
||||||
goto out;
|
goto out;
|
||||||
|
Loading…
Reference in New Issue
Block a user