[FFmpeg-cvslog] Set bits_per_raw_sample when reading j2k frames.
Carl Eugen Hoyos
git at videolan.org
Thu Sep 12 22:28:02 CEST 2013
ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Thu Sep 12 09:23:32 2013 +0200| [f99f7f40257c53f93a9b65725e37459db54178f9] | committer: Carl Eugen Hoyos
Set bits_per_raw_sample when reading j2k frames.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f99f7f40257c53f93a9b65725e37459db54178f9
---
libavcodec/jpeg2000dec.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavcodec/jpeg2000dec.c b/libavcodec/jpeg2000dec.c
index e67f098..345c7e1 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;
}
More information about the ffmpeg-cvslog
mailing list