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

github.com/mpc-hc/LAVFilters.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHendrik Leppkes <h.leppkes@gmail.com>2017-07-17 20:04:23 +0300
committerHendrik Leppkes <h.leppkes@gmail.com>2017-07-17 20:04:23 +0300
commitcc47c4d2a941544500e6e043fc06a8f08cab210e (patch)
tree4f9a3744f6d36adec91b7b9f9d86eeb1e57ac2d6
parent3dd695efc94494c6622c54b266d839c0a284318b (diff)
Update use of deprecated av_get_codec_tag_string
-rw-r--r--demuxer/Demuxers/LAVFUtils.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/demuxer/Demuxers/LAVFUtils.cpp b/demuxer/Demuxers/LAVFUtils.cpp
index 9c4bd71c..a155a178 100644
--- a/demuxer/Demuxers/LAVFUtils.cpp
+++ b/demuxer/Demuxers/LAVFUtils.cpp
@@ -143,9 +143,8 @@ std::string get_codec_name(const AVCodecParameters *par)
codec_name << " " << tolower(profile);
} else {
/* output avi tags */
- char buf[32];
- av_get_codec_tag_string(buf, sizeof(buf), par->codec_tag);
- codec_name << buf;
+ char buf[AV_FOURCC_MAX_STRING_SIZE] = { 0 };
+ codec_name << av_fourcc_make_string(buf, par->codec_tag);
sprintf_s(buf, "0x%04X", par->codec_tag);
codec_name << " / " << buf;
}