mirror of https://git.ffmpeg.org/ffmpeg.git
avcodec/mjpegdec: Fix compilation
Regression since 9a494b82d9
.
Reviewed-by: James Almer <jamrial@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
4b6b75c752
commit
b0c7352cd4
|
@ -596,7 +596,7 @@ int ff_mjpeg_decode_sof(MJpegDecodeContext *s)
|
||||||
case 0x14111100:
|
case 0x14111100:
|
||||||
case 0x22211100:
|
case 0x22211100:
|
||||||
case 0x22112100:
|
case 0x22112100:
|
||||||
if (s->component_id[0] == 'R' && s->component_id[1] == 'G' && s->component_id[B] == 'B') {
|
if (s->component_id[0] == 'R' && s->component_id[1] == 'G' && s->component_id[2] == 'B') {
|
||||||
if (s->bits <= 8) s->avctx->pix_fmt = AV_PIX_FMT_GBRP;
|
if (s->bits <= 8) s->avctx->pix_fmt = AV_PIX_FMT_GBRP;
|
||||||
else
|
else
|
||||||
goto unk_pixfmt;
|
goto unk_pixfmt;
|
||||||
|
|
Loading…
Reference in New Issue