Commit ae4dc0b3 authored by Carl Eugen Hoyos's avatar Carl Eugen Hoyos

Set bits_per_raw_sample when decoding mjpeg / ljpeg.

The ljpeg decoder also supports gray images with
8 - 15 bits per component.
parent 8a091955
...@@ -221,6 +221,7 @@ int ff_mjpeg_decode_sof(MJpegDecodeContext *s) ...@@ -221,6 +221,7 @@ int ff_mjpeg_decode_sof(MJpegDecodeContext *s)
/* XXX: verify len field validity */ /* XXX: verify len field validity */
len = get_bits(&s->gb, 16); len = get_bits(&s->gb, 16);
s->avctx->bits_per_raw_sample =
s->bits = get_bits(&s->gb, 8); s->bits = get_bits(&s->gb, 8);
if (s->pegasus_rct) if (s->pegasus_rct)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment