aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/pngdec.c
diff options
context:
space:
mode:
authorClément Bœsch <u@pkh.me>2017-03-27 09:45:11 +0200
committerClément Bœsch <u@pkh.me>2017-03-29 14:49:29 +0200
commit2d12b910f71093b782726d00b94643f7f21ca27d (patch)
tree8325ed428af88b01b48387b51ffa1c87825e965a /libavcodec/pngdec.c
parentbec96a7286bc415dd737c8c8f430f0176999e720 (diff)
downloadffmpeg-2d12b910f71093b782726d00b94643f7f21ca27d.tar.gz
lavc: use av_fourcc2str() where appropriate
Diffstat (limited to 'libavcodec/pngdec.c')
-rw-r--r--libavcodec/pngdec.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/libavcodec/pngdec.c b/libavcodec/pngdec.c
index a4eb6cce1b..c08665be7c 100644
--- a/libavcodec/pngdec.c
+++ b/libavcodec/pngdec.c
@@ -1143,11 +1143,8 @@ static int decode_frame_common(AVCodecContext *avctx, PNGDecContext *s,
}
tag = bytestream2_get_le32(&s->gb);
if (avctx->debug & FF_DEBUG_STARTCODE)
- av_log(avctx, AV_LOG_DEBUG, "png: tag=%c%c%c%c length=%u\n",
- (tag & 0xff),
- ((tag >> 8) & 0xff),
- ((tag >> 16) & 0xff),
- ((tag >> 24) & 0xff), length);
+ av_log(avctx, AV_LOG_DEBUG, "png: tag=%s length=%u\n",
+ av_fourcc2str(tag), length);
if (avctx->codec_id == AV_CODEC_ID_PNG &&
avctx->skip_frame == AVDISCARD_ALL) {