avformat/rsd: make tag_buf string larger
av_get_codec_tag_string() uses more that 1 char for unprintable characters.
(cherry picked from commit edbbb11488
)
This commit is contained in:

committed by
James Almer

parent
f295f9488a
commit
7e130ca5b4
@@ -70,7 +70,7 @@ static int rsd_read_header(AVFormatContext *s)
|
|||||||
codec->codec_tag = avio_rl32(pb);
|
codec->codec_tag = avio_rl32(pb);
|
||||||
codec->codec_id = ff_codec_get_id(rsd_tags, codec->codec_tag);
|
codec->codec_id = ff_codec_get_id(rsd_tags, codec->codec_tag);
|
||||||
if (!codec->codec_id) {
|
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);
|
av_get_codec_tag_string(tag_buf, sizeof(tag_buf), codec->codec_tag);
|
||||||
for (i=0; i < FF_ARRAY_ELEMS(rsd_unsupported_tags); i++) {
|
for (i=0; i < FF_ARRAY_ELEMS(rsd_unsupported_tags); i++) {
|
||||||
|
Reference in New Issue
Block a user