diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index 35ecc6df9a..5c5d458ec5 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -1257,7 +1257,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 */ /** diff --git a/libavcodec/version.h b/libavcodec/version.h index cd2b0d89c3..5294d8e283 100644 --- a/libavcodec/version.h +++ b/libavcodec/version.h @@ -159,5 +159,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 */