diff options
author | Clément Bœsch <u@pkh.me> | 2014-12-20 00:17:43 +0100 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2014-12-19 18:01:31 -0300 |
commit | 7e130ca5b42c03df51fc8b4b5205d38760546a87 (patch) | |
tree | 19d7a1c4ffaa1430a6b4aa671159ba81db871f0f | |
parent | f295f9488a3013c9f13e8fece926d866ca1cac88 (diff) | |
download | ffmpeg-7e130ca5b42c03df51fc8b4b5205d38760546a87.tar.gz |
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)
-rw-r--r-- | libavformat/rsd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rsd.c b/libavformat/rsd.c index bb2f3bc7a2..1eff5de7e6 100644 --- a/libavformat/rsd.c +++ b/libavformat/rsd.c @@ -70,7 +70,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++) { |