summaryrefslogtreecommitdiffstats
path: root/libavformat/avidec.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/avidec.c
parent67e370ee527e9aa88d8754afd7345ffd9f6f6159 (diff)
downloadffmpeg-streaming-cd4d6cba122b2d79da8667fa787919b734fa8133.zip
ffmpeg-streaming-cd4d6cba122b2d79da8667fa787919b734fa8133.tar.gz
lavf: fix usages of av_get_codec_tag_string()
Diffstat (limited to 'libavformat/avidec.c')
-rw-r--r--libavformat/avidec.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/libavformat/avidec.c b/libavformat/avidec.c
index 788a3ab..31c33de 100644
--- a/libavformat/avidec.c
+++ b/libavformat/avidec.c
@@ -811,14 +811,12 @@ FF_ENABLE_DEPRECATION_WARNINGS
tag1);
/* If codec is not found yet, try with the mov tags. */
if (!st->codecpar->codec_id) {
- char tag_buf[32];
- av_get_codec_tag_string(tag_buf, sizeof(tag_buf), tag1);
st->codecpar->codec_id =
ff_codec_get_id(ff_codec_movvideo_tags, tag1);
if (st->codecpar->codec_id)
av_log(s, AV_LOG_WARNING,
"mov tag found in avi (fourcc %s)\n",
- tag_buf);
+ av_fourcc2str(tag1));
}
/* This is needed to get the pict type which is necessary
* for generating correct pts. */
@@ -992,13 +990,11 @@ FF_ENABLE_DEPRECATION_WARNINGS
}
default:
if (size > 1000000) {
- char tag_buf[32];
- av_get_codec_tag_string(tag_buf, sizeof(tag_buf), tag);
av_log(s, AV_LOG_ERROR,
"Something went wrong during header parsing, "
"tag %s has size %u, "
"I will ignore it and try to continue anyway.\n",
- tag_buf, size);
+ av_fourcc2str(tag), size);
if (s->error_recognition & AV_EF_EXPLODE)
goto fail;
avi->movi_list = avio_tell(pb) - 4;
OpenPOWER on IntegriCloud