aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/jpeg2000dec.c
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2013-09-12 09:23:32 +0200
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2013-09-12 09:23:32 +0200
commitf99f7f40257c53f93a9b65725e37459db54178f9 (patch)
tree137c1934ff3f6152b228605b3cf9d08d5acc033d /libavcodec/jpeg2000dec.c
parent7412a4a48f23fd1a08fd30e75bbf116b6186fef9 (diff)
downloadffmpeg-f99f7f40257c53f93a9b65725e37459db54178f9.tar.gz
Set bits_per_raw_sample when reading j2k frames.
Diffstat (limited to 'libavcodec/jpeg2000dec.c')
-rw-r--r--libavcodec/jpeg2000dec.c1
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;
}