diff options
Diffstat (limited to 'libavformat/options.c')
-rw-r--r-- | libavformat/options.c | 9 |
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 |