mirror of https://git.ffmpeg.org/ffmpeg.git
avcodec/utils: add missing FF_API_TAG_STRING check
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
0191f2d29c
commit
137a36bdfc
|
@ -1217,6 +1217,7 @@ const char *avcodec_get_name(enum AVCodecID id)
|
||||||
return "unknown_codec";
|
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)
|
size_t av_get_codec_tag_string(char *buf, size_t buf_size, unsigned int codec_tag)
|
||||||
{
|
{
|
||||||
int i, len, ret = 0;
|
int i, len, ret = 0;
|
||||||
|
@ -1236,6 +1237,7 @@ size_t av_get_codec_tag_string(char *buf, size_t buf_size, unsigned int codec_ta
|
||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
void avcodec_string(char *buf, int buf_size, AVCodecContext *enc, int encode)
|
void avcodec_string(char *buf, int buf_size, AVCodecContext *enc, int encode)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue