diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2021-02-25 21:34:56 +0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2021-04-27 16:43:03 +0300 |
commit | d1d8a818742f2429b544d38446a3510d8a23be94 (patch) | |
tree | 6e8d78ce58923fcd2fd315d61f95ca39e62e311d /libavcodec/utils.c | |
parent | 23bb78d2ea4f0e3a0835744d59708efed50abccc (diff) |
avcodec: Remove deprecated av_codec_get_tag_string
Deprecated in f156d35321bb600b2309b78185d600b2fa64d84a.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r-- | libavcodec/utils.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c index 81f337562e..fda50e3db4 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -453,28 +453,6 @@ const char *avcodec_get_name(enum AVCodecID id) return "unknown_codec"; } -#if FF_API_TAG_STRING -size_t av_get_codec_tag_string(char *buf, size_t buf_size, unsigned int codec_tag) -{ - int i, len, ret = 0; - -#define TAG_PRINT(x) \ - (((x) >= '0' && (x) <= '9') || \ - ((x) >= 'a' && (x) <= 'z') || ((x) >= 'A' && (x) <= 'Z') || \ - ((x) == '.' || (x) == ' ' || (x) == '-' || (x) == '_')) - - for (i = 0; i < 4; i++) { - len = snprintf(buf, buf_size, - TAG_PRINT(codec_tag & 0xFF) ? "%c" : "[%d]", codec_tag & 0xFF); - buf += len; - buf_size = buf_size > len ? buf_size - len : 0; - ret += len; - codec_tag >>= 8; - } - return ret; -} -#endif - const char *av_get_profile_name(const AVCodec *codec, int profile) { const AVProfile *p; |