Commit 7e8be708 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/mjpegdec: Print human readable string for APPx

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 3ba05601
...@@ -1455,8 +1455,11 @@ static int mjpeg_decode_app(MJpegDecodeContext *s) ...@@ -1455,8 +1455,11 @@ static int mjpeg_decode_app(MJpegDecodeContext *s)
id = get_bits_long(&s->gb, 32); id = get_bits_long(&s->gb, 32);
len -= 6; len -= 6;
if (s->avctx->debug & FF_DEBUG_STARTCODE) if (s->avctx->debug & FF_DEBUG_STARTCODE) {
av_log(s->avctx, AV_LOG_DEBUG, "APPx %8X len=%d\n", id, len); char id_str[32];
av_get_codec_tag_string(id_str, sizeof(id_str), av_bswap32(id));
av_log(s->avctx, AV_LOG_DEBUG, "APPx (%s / %8X) len=%d\n", id_str, id, len);
}
/* Buggy AVID, it puts EOI only at every 10th frame. */ /* Buggy AVID, it puts EOI only at every 10th frame. */
/* Also, this fourcc is used by non-avid files too, it holds some /* Also, this fourcc is used by non-avid files too, it holds some
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment