X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fmjpegdec.c;h=22a10679b4ac4e2454490f872271c3a43d6fb4ad;hb=7e8be7081fed78d60443d336d7fb9126b76da461;hp=0ed9c0a41b9b3a67e6d044a6e6e11343b1a3d8f0;hpb=60b46a00c62db3e366322f99d261480cd213bfa5;p=ffmpeg diff --git a/libavcodec/mjpegdec.c b/libavcodec/mjpegdec.c index 0ed9c0a41b9..22a10679b4a 100644 --- a/libavcodec/mjpegdec.c +++ b/libavcodec/mjpegdec.c @@ -1455,8 +1455,11 @@ static int mjpeg_decode_app(MJpegDecodeContext *s) id = get_bits_long(&s->gb, 32); len -= 6; - if (s->avctx->debug & FF_DEBUG_STARTCODE) - av_log(s->avctx, AV_LOG_DEBUG, "APPx %8X len=%d\n", id, len); + if (s->avctx->debug & FF_DEBUG_STARTCODE) { + 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. */ /* Also, this fourcc is used by non-avid files too, it holds some