[FFmpeg-cvslog] avcodec/mjpeg: print info from parse_avid() if requested
Michael Niedermayer
git at videolan.org
Sun Mar 23 21:12:14 CET 2014
ffmpeg | branch: release/2.2 | Michael Niedermayer <michaelni at gmx.at> | Wed Mar 19 17:59:02 2014 +0100| [7bdd348e583230c440309e84cf1e86b37dff8955] | committer: Michael Niedermayer
avcodec/mjpeg: print info from parse_avid() if requested
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
(cherry picked from commit 046a75eea091e7d079bd3e5c9f5f028d7b920c32)
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7bdd348e583230c440309e84cf1e86b37dff8955
---
libavcodec/mjpegdec.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavcodec/mjpegdec.c b/libavcodec/mjpegdec.c
index bcd72e2..4394854 100644
--- a/libavcodec/mjpegdec.c
+++ b/libavcodec/mjpegdec.c
@@ -90,6 +90,8 @@ static void parse_avid(MJpegDecodeContext *s, uint8_t *buf, int len)
s->interlace_polarity = 1;
if (len > 14 && buf[12] == 2) /* 2 - PAL */
s->interlace_polarity = 0;
+ if (s->avctx->debug & FF_DEBUG_PICT_INFO)
+ av_log(s->avctx, AV_LOG_INFO, "AVID: len:%d %d\n", len, len > 14 ? buf[12] : -1);
}
av_cold int ff_mjpeg_decode_init(AVCodecContext *avctx)
More information about the ffmpeg-cvslog
mailing list