diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-09-27 20:46:48 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-09-27 21:32:39 +0200 |
commit | 9e0438c903d39a04cce071766894e1c1f4dce30c (patch) | |
tree | ffe8ab649e9df24e8c857502c6a43d4ce98aedda | |
parent | 0047ac1427005d59c9448ecf287f1408ff4c19e1 (diff) | |
download | ffmpeg-9e0438c903d39a04cce071766894e1c1f4dce30c.tar.gz |
img2enc: show first 4 bytes if a malformed jpeg2000 codestream is detected
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavformat/img2.c | 2 |
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; } } |