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

Set bits_per_raw_sample when reading j2k frames.

parent 7412a4a4
......@@ -350,6 +350,7 @@ static int get_siz(Jpeg2000DecoderContext *s)
ncomponents > 2 ? s->cdx[2] : 0,
ncomponents > 2 ? s->cdy[2] : 0);
}
s->avctx->bits_per_raw_sample = s->precision;
return 0;
}
......
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