diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2009-02-08 08:16:40 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2009-02-08 08:16:40 +0000 |
commit | 88a2896520f667461e7e9ef089d17954fe4ff1d2 (patch) | |
tree | 51d0eb026ad06dbeabc5a6672a9302dd0c75cb8f /libavformat/avformat.h | |
parent | 353f87b8d44f84b0e7b242788c4447e7fbd06361 (diff) | |
download | ffmpeg-88a2896520f667461e7e9ef089d17954fe4ff1d2.tar.gz |
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/avformat.h')
-rw-r--r-- | libavformat/avformat.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/libavformat/avformat.h b/libavformat/avformat.h index 77745ba813..420125409d 100644 --- a/libavformat/avformat.h +++ b/libavformat/avformat.h @@ -22,7 +22,7 @@ #define AVFORMAT_AVFORMAT_H #define LIBAVFORMAT_VERSION_MAJOR 52 -#define LIBAVFORMAT_VERSION_MINOR 25 +#define LIBAVFORMAT_VERSION_MINOR 26 #define LIBAVFORMAT_VERSION_MICRO 0 #define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \ @@ -813,12 +813,20 @@ int av_open_input_file(AVFormatContext **ic_ptr, const char *filename, AVInputFormat *fmt, int buf_size, AVFormatParameters *ap); + +#if LIBAVFORMAT_VERSION_MAJOR < 53 +/** + * @deprecated Use avformat_alloc_context() instead. + */ +attribute_deprecated AVFormatContext *av_alloc_format_context(void); +#endif + /** * Allocate an AVFormatContext. * Can be freed with av_free() but do not forget to free everything you * explicitly allocated as well! */ -AVFormatContext *av_alloc_format_context(void); +AVFormatContext *avformat_alloc_context(void); /** * Read packets of a media file to get stream information. This |