summaryrefslogtreecommitdiff
path: root/libavcodec/mjpegdec.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2019-09-18 05:25:59 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2019-09-18 22:53:00 +0200
commit9442b0de1bf607ef9577623780897c0380736dd7 (patch)
treed73e33f466699bc76da417adaf5cf8bd4d9e0e07 /libavcodec/mjpegdec.c
parent90f647c29be3eb436fb8b6be612f64ec686a48a8 (diff)
downloadffmpeg-9442b0de1bf607ef9577623780897c0380736dd7.tar.gz
avcodec/mjpegdec: Unify switch statements
This has been forgotten in d5a3a20d. Found via PVS-Studio (see ticket #8156). Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/mjpegdec.c')
-rw-r--r--libavcodec/mjpegdec.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/libavcodec/mjpegdec.c b/libavcodec/mjpegdec.c
index f095afaed8..8b053613fc 100644
--- a/libavcodec/mjpegdec.c
+++ b/libavcodec/mjpegdec.c
@@ -555,11 +555,6 @@ int ff_mjpeg_decode_sof(MJpegDecodeContext *s)
case 0x22122100:
case 0x21211100:
case 0x22211200:
- if (s->bits <= 8) s->avctx->pix_fmt = s->cs_itu601 ? AV_PIX_FMT_YUV444P : AV_PIX_FMT_YUVJ444P;
- else
- goto unk_pixfmt;
- s->avctx->color_range = s->cs_itu601 ? AVCOL_RANGE_MPEG : AVCOL_RANGE_JPEG;
- break;
case 0x22221100:
case 0x22112200:
case 0x11222200: