Skip to content
Snippets Groups Projects
Commit f99f7f40 authored by Carl Eugen Hoyos's avatar Carl Eugen Hoyos
Browse files

Set bits_per_raw_sample when reading j2k frames.

parent 7412a4a4
No related branches found
No related tags found
No related merge requests found
...@@ -350,6 +350,7 @@ static int get_siz(Jpeg2000DecoderContext *s) ...@@ -350,6 +350,7 @@ static int get_siz(Jpeg2000DecoderContext *s)
ncomponents > 2 ? s->cdx[2] : 0, ncomponents > 2 ? s->cdx[2] : 0,
ncomponents > 2 ? s->cdy[2] : 0); ncomponents > 2 ? s->cdy[2] : 0);
} }
s->avctx->bits_per_raw_sample = s->precision;
return 0; return 0;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment