summaryrefslogtreecommitdiff
path: root/libavformat/options.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2009-02-08 08:16:40 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2009-02-08 08:16:40 +0000
commit88a2896520f667461e7e9ef089d17954fe4ff1d2 (patch)
tree51d0eb026ad06dbeabc5a6672a9302dd0c75cb8f /libavformat/options.c
parent353f87b8d44f84b0e7b242788c4447e7fbd06361 (diff)
Deprecate av_malloc_format_context() in favor of
avformat_alloc_context(), and drop the old symbol at the next major bump. Originally committed as revision 17047 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/options.c')
-rw-r--r--libavformat/options.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/libavformat/options.c b/libavformat/options.c
index 6f6ffe41a3..2063444faf 100644
--- a/libavformat/options.c
+++ b/libavformat/options.c
@@ -72,7 +72,7 @@ static void avformat_get_context_defaults(AVFormatContext *s)
av_opt_set_defaults(s);
}
-AVFormatContext *av_alloc_format_context(void)
+AVFormatContext *avformat_alloc_context(void)
{
AVFormatContext *ic;
ic = av_malloc(sizeof(AVFormatContext));
@@ -81,3 +81,10 @@ AVFormatContext *av_alloc_format_context(void)
ic->av_class = &av_format_context_class;
return ic;
}
+
+#if LIBAVFORMAT_VERSION_MAJOR < 53
+AVFormatContext *av_alloc_format_context(void)
+{
+ return avformat_alloc_context();
+}
+#endif