1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-15 14:13:16 +02:00

img2enc: show first 4 bytes if a malformed jpeg2000 codestream is detected

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer
2011-09-27 20:46:48 +02:00
parent 0047ac1427
commit 9e0438c903

View File

@@ -442,7 +442,7 @@ static int write_packet(AVFormatContext *s, AVPacket *pkt)
(!st->codec->extradata_size && (!st->codec->extradata_size &&
AV_RL32(pkt->data+4) != MKTAG('j','P',' ',' '))){ // signature AV_RL32(pkt->data+4) != MKTAG('j','P',' ',' '))){ // signature
error: 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; return -1;
} }
} }