Browse Source

lavf: remove FF_API_ALLOC_FORMAT_CONTEXT cruft

tags/n0.8
Anton Khirnov 14 years ago
parent
commit
4df001d77f
3 changed files with 0 additions and 17 deletions
  1. +0
    -7
      libavformat/avformat.h
  2. +0
    -7
      libavformat/options.c
  3. +0
    -3
      libavformat/version.h

+ 0
- 7
libavformat/avformat.h View File

@@ -1043,13 +1043,6 @@ int av_open_input_file(AVFormatContext **ic_ptr, const char *filename,
int buf_size,
AVFormatParameters *ap);

#if FF_API_ALLOC_FORMAT_CONTEXT
/**
* @deprecated Use avformat_alloc_context() instead.
*/
attribute_deprecated AVFormatContext *av_alloc_format_context(void);
#endif

/**
* Allocate an AVFormatContext.
* avformat_free_context() can be used to free the context and everything


+ 0
- 7
libavformat/options.c View File

@@ -84,10 +84,3 @@ AVFormatContext *avformat_alloc_context(void)
ic->av_class = &av_format_context_class;
return ic;
}

#if FF_API_ALLOC_FORMAT_CONTEXT
AVFormatContext *av_alloc_format_context(void)
{
return avformat_alloc_context();
}
#endif

+ 0
- 3
libavformat/version.h View File

@@ -47,9 +47,6 @@
#ifndef FF_API_URL_CLASS
#define FF_API_URL_CLASS (LIBAVFORMAT_VERSION_MAJOR >= 53)
#endif
#ifndef FF_API_ALLOC_FORMAT_CONTEXT
#define FF_API_ALLOC_FORMAT_CONTEXT (LIBAVFORMAT_VERSION_MAJOR < 53)
#endif
#ifndef FF_API_PARSE_FRAME_PARAM
#define FF_API_PARSE_FRAME_PARAM (LIBAVFORMAT_VERSION_MAJOR < 53)
#endif


Loading…
Cancel
Save