[FFmpeg-cvslog] avformat/apngdec: make tag_buf string larger

Clément Bœsch git at videolan.org
Sat Dec 20 01:24:00 CET 2014


ffmpeg | branch: release/2.5 | Clément Bœsch <u at pkh.me> | Sat Dec 20 00:17:21 2014 +0100| [f295f9488a3013c9f13e8fece926d866ca1cac88] | committer: James Almer

avformat/apngdec: make tag_buf string larger

av_get_codec_tag_string() uses more that 1 char for unprintable characters.

(cherry picked from commit d60fb4f7946272d2ef39703762b54c5f3a1b5789)

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

 libavformat/apngdec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/apngdec.c b/libavformat/apngdec.c
index d97b015..5e7a4a1 100644
--- a/libavformat/apngdec.c
+++ b/libavformat/apngdec.c
@@ -404,7 +404,7 @@ static int apng_read_packet(AVFormatContext *s, AVPacket *pkt)
         return 0;
     default:
         {
-        char tag_buf[5];
+        char tag_buf[32];
 
         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);



More information about the ffmpeg-cvslog mailing list