avformat/apngdec: make tag_buf string larger

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

(cherry picked from commit d60fb4f794)
This commit is contained in:
Clément Bœsch 2014-12-20 00:17:21 +01:00 committed by James Almer
parent 2c01dd2ea5
commit f295f9488a
1 changed files with 1 additions and 1 deletions

View File

@ -404,7 +404,7 @@ static int apng_read_packet(AVFormatContext *s, AVPacket *pkt)
return 0; return 0;
default: default:
{ {
char tag_buf[5]; char tag_buf[32];
av_get_codec_tag_string(tag_buf, sizeof(tag_buf), tag); 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); avpriv_request_sample(s, "In-stream tag=%s (0x%08X) len=%"PRIu32, tag_buf, tag, len);