From 9e0438c903d39a04cce071766894e1c1f4dce30c Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Tue, 27 Sep 2011 20:46:48 +0200 Subject: [PATCH] img2enc: show first 4 bytes if a malformed jpeg2000 codestream is detected Signed-off-by: Michael Niedermayer --- libavformat/img2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/img2.c b/libavformat/img2.c index a2a4a017d5..b38afba57b 100644 --- a/libavformat/img2.c +++ b/libavformat/img2.c @@ -442,7 +442,7 @@ static int write_packet(AVFormatContext *s, AVPacket *pkt) (!st->codec->extradata_size && AV_RL32(pkt->data+4) != MKTAG('j','P',' ',' '))){ // signature error: - av_log(s, AV_LOG_ERROR, "malformated jpeg2000 codestream\n"); + av_log(s, AV_LOG_ERROR, "malformated jpeg2000 codestream %X\n", AV_RB32(pkt->data)); return -1; } }