summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2011-02-03 12:47:18 +0100
committerAnton Khirnov <anton@khirnov.net>2011-04-19 18:28:39 +0200
commitb4c5acabb90cf8e69db2d9f3210d9fa8a7d55ec6 (patch)
treef2f3559e555af300840db0197bb5a3fb3277686c
parent583f6c67b6edfb6a6202944b8ba98b483826a1ec (diff)
lavf: remove FF_API_FIRST_FORMAT cruft
-rw-r--r--libavformat/avformat.h5
-rw-r--r--libavformat/utils.c10
-rw-r--r--libavformat/version.h3
3 files changed, 2 insertions, 16 deletions
diff --git a/libavformat/avformat.h b/libavformat/avformat.h
index 4ed791b995..568521311e 100644
--- a/libavformat/avformat.h
+++ b/libavformat/avformat.h
@@ -820,11 +820,6 @@ typedef struct AVPacketList {
struct AVPacketList *next;
} AVPacketList;
-#if FF_API_FIRST_FORMAT
-attribute_deprecated extern AVInputFormat *first_iformat;
-attribute_deprecated extern AVOutputFormat *first_oformat;
-#endif
-
/**
* If f is NULL, returns the first registered input format,
* if f is non-NULL, returns the next registered input format after f
diff --git a/libavformat/utils.c b/libavformat/utils.c
index d2f70e17e6..1359bd3d05 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -115,15 +115,9 @@ static void av_frac_add(AVFrac *f, int64_t incr)
}
/** head of registered input format linked list */
-#if !FF_API_FIRST_FORMAT
-static
-#endif
-AVInputFormat *first_iformat = NULL;
+static AVInputFormat *first_iformat = NULL;
/** head of registered output format linked list */
-#if !FF_API_FIRST_FORMAT
-static
-#endif
-AVOutputFormat *first_oformat = NULL;
+static AVOutputFormat *first_oformat = NULL;
AVInputFormat *av_iformat_next(AVInputFormat *f)
{
diff --git a/libavformat/version.h b/libavformat/version.h
index 11b8b0529f..9499fd6e38 100644
--- a/libavformat/version.h
+++ b/libavformat/version.h
@@ -50,9 +50,6 @@
#ifndef FF_API_READ_SEEK
#define FF_API_READ_SEEK (LIBAVFORMAT_VERSION_MAJOR < 54)
#endif
-#ifndef FF_API_FIRST_FORMAT
-#define FF_API_FIRST_FORMAT (LIBAVFORMAT_VERSION_MAJOR < 53)
-#endif
#ifndef FF_API_SYMVER
#define FF_API_SYMVER (LIBAVFORMAT_VERSION_MAJOR < 53)
#endif