Browse code

j2kdec: dont fail on non zero cblock style.

This allows decoding to continue a bit further for some files.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>

Michael Niedermayer authored on 2011/06/04 02:34:43
Showing 1 changed files
... ...
@@ -285,8 +285,7 @@ static int get_cox(J2kDecoderContext *s, J2kCodingStyle *c)
285 285
 
286 286
     c->cblk_style = bytestream_get_byte(&s->buf);
287 287
     if (c->cblk_style != 0){ // cblk style
288
-        av_log(s->avctx, AV_LOG_ERROR, "no extra cblk styles supported\n");
289
-        return -1;
288
+        av_log(s->avctx, AV_LOG_WARNING, "extra cblk styles %X\n", c->cblk_style);
290 289
     }
291 290
     c->transform = bytestream_get_byte(&s->buf); // transformation
292 291
     if (c->csty & J2K_CSTY_PREC) {