diff options
author | Clément Bœsch <u@pkh.me> | 2014-12-19 23:57:39 +0100 |
---|---|---|
committer | Clément Bœsch <u@pkh.me> | 2014-12-19 23:57:39 +0100 |
commit | 83b0fe395bbd343a3a3f3076dfd7d7acf38ad398 (patch) | |
tree | 3cd83762f59b741595ac055e501cfb776515e10e /libavformat/wavdec.c | |
parent | e8d57e41639336d2507a7f017bd45598cbb257d9 (diff) | |
download | ffmpeg-83b0fe395bbd343a3a3f3076dfd7d7acf38ad398.tar.gz |
avformat/wavdec: make start_code string larger
av_get_codec_tag_string() uses more that 1 char for unprintable characters.
Diffstat (limited to 'libavformat/wavdec.c')
-rw-r--r-- | libavformat/wavdec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/wavdec.c b/libavformat/wavdec.c index 98e97878cb..410c2ec1f9 100644 --- a/libavformat/wavdec.c +++ b/libavformat/wavdec.c @@ -249,7 +249,7 @@ static int wav_read_header(AVFormatContext *s) int64_t size, av_uninit(data_size); int64_t sample_count = 0; int rf64 = 0; - char start_code[5]; + char start_code[32]; uint32_t tag; AVIOContext *pb = s->pb; AVStream *st = NULL; @@ -273,7 +273,7 @@ static int wav_read_header(AVFormatContext *s) rf64 = 1; break; default: - av_get_codec_tag_string(start_code, 5, tag); + av_get_codec_tag_string(start_code, sizeof(start_code), tag); av_log(s, AV_LOG_ERROR, "invalid start code %s in RIFF header\n", start_code); return AVERROR_INVALIDDATA; } |