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/mux.c | |
parent | 67e370ee527e9aa88d8754afd7345ffd9f6f6159 (diff) | |
download | ffmpeg-cd4d6cba122b2d79da8667fa787919b734fa8133.tar.gz |
lavf: fix usages of av_get_codec_tag_string()
Diffstat (limited to 'libavformat/mux.c')
-rw-r--r-- | libavformat/mux.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/libavformat/mux.c b/libavformat/mux.c index 11b09f1b6e..424b3346c9 100644 --- a/libavformat/mux.c +++ b/libavformat/mux.c @@ -370,12 +370,11 @@ FF_ENABLE_DEPRECATION_WARNINGS } if (par->codec_tag) { if (!validate_codec_tag(s, st)) { - char tagbuf[32], tagbuf2[32]; - av_get_codec_tag_string(tagbuf, sizeof(tagbuf), par->codec_tag); - av_get_codec_tag_string(tagbuf2, sizeof(tagbuf2), av_codec_get_tag(s->oformat->codec_tag, par->codec_id)); + const uint32_t otag = av_codec_get_tag(s->oformat->codec_tag, par->codec_id); av_log(s, AV_LOG_ERROR, "Tag %s/0x%08x incompatible with output codec id '%d' (%s)\n", - tagbuf, par->codec_tag, par->codec_id, tagbuf2); + av_fourcc2str(par->codec_tag), par->codec_tag, + par->codec_id, av_fourcc2str(otag)); ret = AVERROR_INVALIDDATA; goto fail; } |