avcodec/jpeg2000dec: Print warning for "Selective arithmetic coding bypass"
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 11 Jun 2015 20:33:53 +0000 (22:33 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 11 Jun 2015 20:59:07 +0000 (22:59 +0200)
This is implemented but i suspect does not work correctly as no file using this
seems to decode correctly.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/jpeg2000dec.c

index 026b930..6f4bd19 100644 (file)
@@ -411,6 +411,8 @@ static int get_cox(Jpeg2000DecoderContext *s, Jpeg2000CodingStyle *c)
     c->cblk_style = bytestream2_get_byteu(&s->g);
     if (c->cblk_style != 0) { // cblk style
         av_log(s->avctx, AV_LOG_WARNING, "extra cblk styles %X\n", c->cblk_style);
+        if (c->cblk_style & JPEG2000_CBLK_BYPASS)
+            av_log(s->avctx, AV_LOG_WARNING, "Selective arithmetic coding bypass\n");
     }
     c->transform = bytestream2_get_byteu(&s->g); // DWT transformation type
     /* set integer 9/7 DWT in case of BITEXACT flag */