Mercurial > libavformat.hg
diff options.c @ 4405:61319d92bc36 libavformat
Deprecate av_malloc_format_context() in favor of
avformat_alloc_context(), and drop the old symbol at the next major
bump.
author | stefano |
---|---|
date | Sun, 08 Feb 2009 08:16:40 +0000 |
parents | 49c1d3b27727 |
children | 166d293b44fa |
line wrap: on
line diff
--- a/options.c Sun Feb 08 05:12:30 2009 +0000 +++ b/options.c Sun Feb 08 08:16:40 2009 +0000 @@ -72,7 +72,7 @@ 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 @@ 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