Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Bœsch <u@pkh.me>2017-03-27 02:31:52 +0300
committerClément Bœsch <u@pkh.me>2017-03-29 15:49:29 +0300
commitcd4d6cba122b2d79da8667fa787919b734fa8133 (patch)
tree3e62a66398e4833fd94d6cee51ba24bd6a236dce /libavformat/aiffdec.c
parent67e370ee527e9aa88d8754afd7345ffd9f6f6159 (diff)
lavf: fix usages of av_get_codec_tag_string()
Diffstat (limited to 'libavformat/aiffdec.c')
-rw-r--r--libavformat/aiffdec.c8
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;
}