[FFmpeg-devel] [PATCH 12/18] avformat: remove obsolete FF_API_CLOSE_INPUT_FILE cruft

James Almer jamrial at gmail.com
Mon Sep 15 03:46:14 CEST 2014


Signed-off-by: James Almer <jamrial at gmail.com>
---
 libavformat/avformat.h | 11 -----------
 libavformat/utils.c    |  7 -------
 libavformat/version.h  |  3 ---
 3 files changed, 21 deletions(-)

diff --git a/libavformat/avformat.h b/libavformat/avformat.h
index d1959e9..7663c0d 100644
--- a/libavformat/avformat.h
+++ b/libavformat/avformat.h
@@ -2140,17 +2140,6 @@ int av_read_play(AVFormatContext *s);
  */
 int av_read_pause(AVFormatContext *s);
 
-#if FF_API_CLOSE_INPUT_FILE
-/**
- * @deprecated use avformat_close_input()
- * Close a media file (but not its codecs).
- *
- * @param s media file handle
- */
-attribute_deprecated
-void av_close_input_file(AVFormatContext *s);
-#endif
-
 /**
  * Close an opened input AVFormatContext. Free it and all its contents
  * and set *s to NULL.
diff --git a/libavformat/utils.c b/libavformat/utils.c
index 541b1f7..a3bc349 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -3523,13 +3523,6 @@ void avformat_free_context(AVFormatContext *s)
     av_free(s);
 }
 
-#if FF_API_CLOSE_INPUT_FILE
-void av_close_input_file(AVFormatContext *s)
-{
-    avformat_close_input(&s);
-}
-#endif
-
 void avformat_close_input(AVFormatContext **ps)
 {
     AVFormatContext *s;
diff --git a/libavformat/version.h b/libavformat/version.h
index d12b6ec..a59d002 100644
--- a/libavformat/version.h
+++ b/libavformat/version.h
@@ -61,9 +61,6 @@
 #define FF_API_URL_FEOF                 (LIBAVFORMAT_VERSION_MAJOR < 57)
 #endif
 
-#ifndef FF_API_CLOSE_INPUT_FILE
-#define FF_API_CLOSE_INPUT_FILE        (LIBAVFORMAT_VERSION_MAJOR < 56)
-#endif
 #ifndef FF_API_READ_PACKET
 #define FF_API_READ_PACKET             (LIBAVFORMAT_VERSION_MAJOR < 56)
 #endif
-- 
1.8.5.5



More information about the ffmpeg-devel mailing list