[FFmpeg-cvslog] lavf/apngdec: print currently unsupported in-stream tags in a more readable form

James Almer git at videolan.org
Sun Nov 23 17:03:11 CET 2014


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Sat Nov 22 13:41:43 2014 -0300| [305b03097db3ccfed4b0b9d91e99fcb34c77da1b] | committer: James Almer

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 at free.fr>
Signed-off-by: James Almer <jamrial at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=305b03097db3ccfed4b0b9d91e99fcb34c77da1b
---

 libavformat/apngdec.c |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/libavformat/apngdec.c b/libavformat/apngdec.c
index db501ec..1e0f1c7 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 */



More information about the ffmpeg-cvslog mailing list