lavc: deprecate AVCodecContext.codec_name

It is undocumented and has no real use.
This commit is contained in:
Anton Khirnov 2014-04-29 16:44:08 +02:00
parent e7fc9796d8
commit ba71c74017
2 changed files with 9 additions and 0 deletions

View File

@ -1099,7 +1099,13 @@ typedef struct AVCodecContext {
enum AVMediaType codec_type; /* see AVMEDIA_TYPE_xxx */
const struct AVCodec *codec;
#if FF_API_CODEC_NAME
/**
* @deprecated this field is not used for anything in libavcodec
*/
attribute_deprecated
char codec_name[32];
#endif
enum AVCodecID codec_id; /* see AV_CODEC_ID_xxx */
/**

View File

@ -141,5 +141,8 @@
#ifndef FF_API_MV0
#define FF_API_MV0 (LIBAVCODEC_VERSION_MAJOR < 57)
#endif
#ifndef FF_API_CODEC_NAME
#define FF_API_CODEC_NAME (LIBAVCODEC_VERSION_MAJOR < 57)
#endif
#endif /* AVCODEC_VERSION_H */