Revision 4df001d7

View differences:

libavformat/avformat.h
1043 1043
                       int buf_size,
1044 1044
                       AVFormatParameters *ap);
1045 1045

  
1046
#if FF_API_ALLOC_FORMAT_CONTEXT
1047
/**
1048
 * @deprecated Use avformat_alloc_context() instead.
1049
 */
1050
attribute_deprecated AVFormatContext *av_alloc_format_context(void);
1051
#endif
1052

  
1053 1046
/**
1054 1047
 * Allocate an AVFormatContext.
1055 1048
 * avformat_free_context() can be used to free the context and everything
libavformat/options.c
84 84
    ic->av_class = &av_format_context_class;
85 85
    return ic;
86 86
}
87

  
88
#if FF_API_ALLOC_FORMAT_CONTEXT
89
AVFormatContext *av_alloc_format_context(void)
90
{
91
    return avformat_alloc_context();
92
}
93
#endif
libavformat/version.h
47 47
#ifndef FF_API_URL_CLASS
48 48
#define FF_API_URL_CLASS               (LIBAVFORMAT_VERSION_MAJOR >= 53)
49 49
#endif
50
#ifndef FF_API_ALLOC_FORMAT_CONTEXT
51
#define FF_API_ALLOC_FORMAT_CONTEXT    (LIBAVFORMAT_VERSION_MAJOR < 53)
52
#endif
53 50
#ifndef FF_API_PARSE_FRAME_PARAM
54 51
#define FF_API_PARSE_FRAME_PARAM       (LIBAVFORMAT_VERSION_MAJOR < 53)
55 52
#endif

Also available in: Unified diff