aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/img2.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-09-27 20:46:48 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-09-27 21:32:39 +0200
commit9e0438c903d39a04cce071766894e1c1f4dce30c (patch)
treeffe8ab649e9df24e8c857502c6a43d4ce98aedda /libavformat/img2.c
parent0047ac1427005d59c9448ecf287f1408ff4c19e1 (diff)
downloadffmpeg-9e0438c903d39a04cce071766894e1c1f4dce30c.tar.gz
img2enc: show first 4 bytes if a malformed jpeg2000 codestream is detected
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/img2.c')
-rw-r--r--libavformat/img2.c2
1 files changed, 1 insertions, 1 deletions
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;
}
}