diff options
author | Clément Bœsch <u@pkh.me> | 2017-03-27 01:31:52 +0200 |
---|---|---|
committer | Clément Bœsch <u@pkh.me> | 2017-03-29 14:49:29 +0200 |
commit | cd4d6cba122b2d79da8667fa787919b734fa8133 (patch) | |
tree | 3e62a66398e4833fd94d6cee51ba24bd6a236dce /libavformat/aiffdec.c | |
parent | 67e370ee527e9aa88d8754afd7345ffd9f6f6159 (diff) | |
download | ffmpeg-cd4d6cba122b2d79da8667fa787919b734fa8133.tar.gz |
lavf: fix usages of av_get_codec_tag_string()
Diffstat (limited to 'libavformat/aiffdec.c')
-rw-r--r-- | libavformat/aiffdec.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/libavformat/aiffdec.c b/libavformat/aiffdec.c index 7dcc85f1ed..2ef9386edb 100644 --- a/libavformat/aiffdec.c +++ b/libavformat/aiffdec.c @@ -128,11 +128,9 @@ static int get_aiff_header(AVFormatContext *s, int size, } else if (version == AIFF_C_VERSION1) { par->codec_tag = avio_rl32(pb); par->codec_id = ff_codec_get_id(ff_codec_aiff_tags, par->codec_tag); - if (par->codec_id == AV_CODEC_ID_NONE) { - char tag[32]; - av_get_codec_tag_string(tag, sizeof(tag), par->codec_tag); - avpriv_request_sample(s, "unknown or unsupported codec tag: %s", tag); - } + if (par->codec_id == AV_CODEC_ID_NONE) + avpriv_request_sample(s, "unknown or unsupported codec tag: %s", + av_fourcc2str(par->codec_tag)); size -= 4; } |