diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-09-30 19:22:05 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-09-30 19:30:29 +0200 |
commit | b0c7352cd494c88d33f032be60b5e1c4e8b092a0 (patch) | |
tree | a95007b937245b752367fa28b2651df4b7daee21 | |
parent | 4b6b75c7526e644e3516a79f0379b2e2f75a054d (diff) |
avcodec/mjpegdec: Fix compilation
Regression since 9a494b82d998823d0de68cb6b8db83cc451d1781.
Reviewed-by: James Almer <jamrial@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-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 85d1129f30..3374ae71bd 100644 --- a/libavcodec/mjpegdec.c +++ b/libavcodec/mjpegdec.c @@ -596,7 +596,7 @@ int ff_mjpeg_decode_sof(MJpegDecodeContext *s) case 0x14111100: case 0x22211100: 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; else goto unk_pixfmt; |