diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2013-09-12 09:23:32 +0200 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2013-09-12 09:23:32 +0200 |
commit | f99f7f40257c53f93a9b65725e37459db54178f9 (patch) | |
tree | 137c1934ff3f6152b228605b3cf9d08d5acc033d | |
parent | 7412a4a48f23fd1a08fd30e75bbf116b6186fef9 (diff) | |
download | ffmpeg-f99f7f40257c53f93a9b65725e37459db54178f9.tar.gz |
Set bits_per_raw_sample when reading j2k frames.
-rw-r--r-- | libavcodec/jpeg2000dec.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/jpeg2000dec.c b/libavcodec/jpeg2000dec.c index e67f098a6d..345c7e1ebe 100644 --- a/libavcodec/jpeg2000dec.c +++ b/libavcodec/jpeg2000dec.c @@ -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; } |