avcodec/jpeg2000dec: Print what is found in place of EPH if EPH is not found
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 26 Jun 2015 19:03:58 +0000 (21:03 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 26 Jun 2015 20:00:28 +0000 (22:00 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/jpeg2000dec.c

index be88f11..1a15bf8 100644 (file)
@@ -994,7 +994,7 @@ static int jpeg2000_decode_packet(Jpeg2000DecoderContext *s, Jpeg2000Tile *tile,
         if (bytestream2_peek_be16(&s->g) == JPEG2000_EPH)
             bytestream2_skip(&s->g, 2);
         else
-            av_log(s->avctx, AV_LOG_ERROR, "EPH marker not found.\n");
+            av_log(s->avctx, AV_LOG_ERROR, "EPH marker not found. instead %X\n", bytestream2_peek_be32(&s->g));
     }
 
     for (bandno = 0; bandno < rlevel->nbands; bandno++) {