]> git.sesse.net Git - ffmpeg/commitdiff
lavc: deprecate AVCodecContext.codec_name
authorAnton Khirnov <anton@khirnov.net>
Tue, 29 Apr 2014 14:44:08 +0000 (16:44 +0200)
committerAnton Khirnov <anton@khirnov.net>
Thu, 1 May 2014 07:31:32 +0000 (09:31 +0200)
It is undocumented and has no real use.

libavcodec/avcodec.h
libavcodec/version.h

index f6869ef9f40865c4c8c4f7598c35bc684a841547..bd211975767905e1d3a19bac5a9f8e162e1bf45f 100644 (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 */
 
     /**
index 79428cf8647611b4f04c4dad945389862e741ed5..fd7aa5d94ce35040d4077462098129078d930569 100644 (file)
 #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 */