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

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


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

avformat/rsd: make tag_buf string larger

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

(cherry picked from commit edbbb11488e1fce9b9703535936d2e1731e2e318)

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

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

diff --git a/libavformat/rsd.c b/libavformat/rsd.c
index 5b53cef..ef7c0cb 100644
--- a/libavformat/rsd.c
+++ b/libavformat/rsd.c
@@ -67,7 +67,7 @@ static int rsd_read_header(AVFormatContext *s)
     codec->codec_tag  = avio_rl32(pb);
     codec->codec_id   = ff_codec_get_id(rsd_tags, codec->codec_tag);
     if (!codec->codec_id) {
-        char tag_buf[5];
+        char tag_buf[32];
 
         av_get_codec_tag_string(tag_buf, sizeof(tag_buf), codec->codec_tag);
         for (i=0; i < FF_ARRAY_ELEMS(rsd_unsupported_tags); i++) {



More information about the ffmpeg-cvslog mailing list