lavc/jpeg2000: Signal lossless / bit-exact video stream.

This commit is contained in:
Carl Eugen Hoyos 2015-07-19 22:34:13 +02:00 committed by Michael Niedermayer
parent 32d8726a31
commit c239fcb948
1 changed files with 3 additions and 0 deletions

View File

@ -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;