X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Favlanguage.h;h=1d72dcb3cb6d8b46e36ab40581150a5679c58ac0;hb=92916e8542e425ca20daddb490261a5818643206;hp=84bef58ab80d65524a427724a094d8fc11eed074;hpb=1994a73a6ba424c03080f02e6b98ef96b7079c47;p=ffmpeg diff --git a/libavformat/avlanguage.h b/libavformat/avlanguage.h index 84bef58ab80..1d72dcb3cb6 100644 --- a/libavformat/avlanguage.h +++ b/libavformat/avlanguage.h @@ -21,6 +21,9 @@ #ifndef AVFORMAT_AVLANGUAGE_H #define AVFORMAT_AVLANGUAGE_H +#include "libavutil/attributes.h" +#include "libavformat/version.h" + /** * Known language codespaces */ @@ -34,6 +37,10 @@ enum AVLangCodespace { * Convert a language code to a target codespace. The source codespace is guessed. * @return NULL if the provided lang is null or invalid. */ +const char *ff_convert_lang_to(const char *lang, enum AVLangCodespace target_codespace); +#if LIBAVFORMAT_VERSION_MAJOR < 58 +attribute_deprecated const char *av_convert_lang_to(const char *lang, enum AVLangCodespace target_codespace); +#endif #endif /* AVFORMAT_AVLANGUAGE_H */