[FFmpeg-cvslog] lavf: remove disabled FF_API_GUESS_IMG2_CODEC cruft

Anton Khirnov git at videolan.org
Sat Jan 28 08:05:09 CET 2012


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Thu Jan 12 13:31:55 2012 +0100| [64f6f6f83662f0a307b3d59d6c0672e0aae96830] | committer: Anton Khirnov

lavf: remove disabled FF_API_GUESS_IMG2_CODEC cruft

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

 libavformat/avformat.h |    4 ----
 libavformat/img2.c     |    6 ------
 libavformat/version.h  |    3 ---
 3 files changed, 0 insertions(+), 13 deletions(-)

diff --git a/libavformat/avformat.h b/libavformat/avformat.h
index fe2b0cf..d71ae2f 100644
--- a/libavformat/avformat.h
+++ b/libavformat/avformat.h
@@ -1191,10 +1191,6 @@ AVProgram *av_new_program(AVFormatContext *s, int id);
  */
 
 
-#if FF_API_GUESS_IMG2_CODEC
-attribute_deprecated enum CodecID av_guess_image2_codec(const char *filename);
-#endif
-
 /**
  * @addtogroup lavf_decoding
  * @{
diff --git a/libavformat/img2.c b/libavformat/img2.c
index 7203cb6..4ff4767 100644
--- a/libavformat/img2.c
+++ b/libavformat/img2.c
@@ -199,12 +199,6 @@ enum CodecID ff_guess_image2_codec(const char *filename)
     return av_str2id(img_tags, filename);
 }
 
-#if FF_API_GUESS_IMG2_CODEC
-enum CodecID av_guess_image2_codec(const char *filename){
-    return av_str2id(img_tags, filename);
-}
-#endif
-
 static int read_header(AVFormatContext *s1)
 {
     VideoData *s = s1->priv_data;
diff --git a/libavformat/version.h b/libavformat/version.h
index 097fdaa..5279f97 100644
--- a/libavformat/version.h
+++ b/libavformat/version.h
@@ -47,9 +47,6 @@
  * Those FF_API_* defines are not part of public API.
  * They may change, break or disappear at any time.
  */
-#ifndef FF_API_GUESS_IMG2_CODEC
-#define FF_API_GUESS_IMG2_CODEC        (LIBAVFORMAT_VERSION_MAJOR < 54)
-#endif
 #ifndef FF_API_SDP_CREATE
 #define FF_API_SDP_CREATE              (LIBAVFORMAT_VERSION_MAJOR < 54)
 #endif



More information about the ffmpeg-cvslog mailing list