[FFmpeg-cvslog] img2enc: show first 4 bytes if a malformed jpeg2000 codestream is detected

Michael Niedermayer git at videolan.org
Tue Sep 27 21:34:39 CEST 2011


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Sep 27 20:46:48 2011 +0200| [9e0438c903d39a04cce071766894e1c1f4dce30c] | committer: Michael Niedermayer

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

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9e0438c903d39a04cce071766894e1c1f4dce30c
---

 libavformat/img2.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavformat/img2.c b/libavformat/img2.c
index a2a4a01..b38afba 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;
             }
         }



More information about the ffmpeg-cvslog mailing list