From cd4d6cba122b2d79da8667fa787919b734fa8133 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20B=C5=93sch?= Date: Mon, 27 Mar 2017 01:31:52 +0200 Subject: lavf: fix usages of av_get_codec_tag_string() --- libavformat/avidec.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'libavformat/avidec.c') 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; -- cgit v1.1