summaryrefslogtreecommitdiff
path: root/libavformat/apngdec.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2014-11-22 13:41:43 -0300
committerJames Almer <jamrial@gmail.com>2014-11-23 13:01:26 -0300
commit305b03097db3ccfed4b0b9d91e99fcb34c77da1b (patch)
treedb49540f9c7c3ef8c320775b688d2cc482f6b2be /libavformat/apngdec.c
parent78093cf849b6de66d8e0d5ac2e4005592b6a0e08 (diff)
downloadffmpeg-305b03097db3ccfed4b0b9d91e99fcb34c77da1b.tar.gz
lavf/apngdec: print currently unsupported in-stream tags in a more readable form
Also use length and not stream position Reviewed-by: Benoit Fouet <benoit.fouet@free.fr> Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat/apngdec.c')
-rw-r--r--libavformat/apngdec.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/libavformat/apngdec.c b/libavformat/apngdec.c
index db501ecba3..1e0f1c7c13 100644
--- a/libavformat/apngdec.c
+++ b/libavformat/apngdec.c
@@ -372,8 +372,13 @@ static int apng_read_packet(AVFormatContext *s, AVPacket *pkt)
return ret;
return 0;
default:
- avpriv_request_sample(s, "In-stream tag=%#08X len=%"PRId64"", tag, avio_tell(pb));
+ {
+ char tag_buf[5];
+
+ av_get_codec_tag_string(tag_buf, sizeof(tag_buf), tag);
+ avpriv_request_sample(s, "In-stream tag=%s (0x%08X) len=%"PRIu32, tag_buf, tag, len);
avio_skip(pb, len + 4);
+ }
}
/* Handle the unsupported yet cases */