[FFmpeg-cvslog] lavc/jpeg2000: Signal lossless / bit-exact video stream.
Carl Eugen Hoyos
git at videolan.org
Mon Jul 20 00:47:15 CEST 2015
ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Sun Jul 19 22:34:13 2015 +0200| [c239fcb94893db484a6a1ef6c7b915cf54c03a9f] | committer: Michael Niedermayer
lavc/jpeg2000: Signal lossless / bit-exact video stream.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c239fcb94893db484a6a1ef6c7b915cf54c03a9f
---
libavcodec/jpeg2000dec.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/libavcodec/jpeg2000dec.c b/libavcodec/jpeg2000dec.c
index 6e60c0a..49d4151 100644
--- a/libavcodec/jpeg2000dec.c
+++ b/libavcodec/jpeg2000dec.c
@@ -469,6 +469,9 @@ static int get_cox(Jpeg2000DecoderContext *s, Jpeg2000CodingStyle *c)
/* set integer 9/7 DWT in case of BITEXACT flag */
if ((s->avctx->flags & CODEC_FLAG_BITEXACT) && (c->transform == FF_DWT97))
c->transform = FF_DWT97_INT;
+ else if (c->transform == FF_DWT53) {
+ s->avctx->properties |= FF_CODEC_PROPERTY_LOSSLESS;
+ }
if (c->csty & JPEG2000_CSTY_PREC) {
int i;
More information about the ffmpeg-cvslog
mailing list