summaryrefslogtreecommitdiff
path: root/libavformat/wavdec.c
diff options
context:
space:
mode:
authorClément Bœsch <u@pkh.me>2017-03-27 01:31:52 +0200
committerClément Bœsch <u@pkh.me>2017-03-29 14:49:29 +0200
commitcd4d6cba122b2d79da8667fa787919b734fa8133 (patch)
tree3e62a66398e4833fd94d6cee51ba24bd6a236dce /libavformat/wavdec.c
parent67e370ee527e9aa88d8754afd7345ffd9f6f6159 (diff)
lavf: fix usages of av_get_codec_tag_string()
Diffstat (limited to 'libavformat/wavdec.c')
-rw-r--r--libavformat/wavdec.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libavformat/wavdec.c b/libavformat/wavdec.c
index a3cd4ffa06..602ce97530 100644
--- a/libavformat/wavdec.c
+++ b/libavformat/wavdec.c
@@ -323,7 +323,6 @@ 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[32];
uint32_t tag;
AVIOContext *pb = s->pb;
AVStream *st = NULL;
@@ -347,8 +346,8 @@ static int wav_read_header(AVFormatContext *s)
rf64 = 1;
break;
default:
- 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);
+ av_log(s, AV_LOG_ERROR, "invalid start code %s in RIFF header\n",
+ av_fourcc2str(tag));
return AVERROR_INVALIDDATA;
}