[FFmpeg-cvslog] lavc: deprecate AVCodecContext.codec_name

Anton Khirnov git at videolan.org
Thu May 1 18:16:03 CEST 2014


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Tue Apr 29 16:44:08 2014 +0200| [ba71c74017c287681153ec8f6f1cba650d797275] | committer: Anton Khirnov

lavc: deprecate AVCodecContext.codec_name

It is undocumented and has no real use.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ba71c74017c287681153ec8f6f1cba650d797275
---

 libavcodec/avcodec.h |    6 ++++++
 libavcodec/version.h |    3 +++
 2 files changed, 9 insertions(+)

diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index f6869ef..bd21197 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -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 */
 
     /**
diff --git a/libavcodec/version.h b/libavcodec/version.h
index 79428cf..fd7aa5d 100644
--- a/libavcodec/version.h
+++ b/libavcodec/version.h
@@ -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 */



More information about the ffmpeg-cvslog mailing list