mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
avcodec: Remove deprecated avcodec_get_context_defaults3
Deprecated in 04fc8e24a0
.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
6c497ac93b
commit
ff8f9fcbe5
@ -2545,15 +2545,6 @@ AVCodecContext *avcodec_alloc_context3(const AVCodec *codec);
|
|||||||
*/
|
*/
|
||||||
void avcodec_free_context(AVCodecContext **avctx);
|
void avcodec_free_context(AVCodecContext **avctx);
|
||||||
|
|
||||||
#if FF_API_GET_CONTEXT_DEFAULTS
|
|
||||||
/**
|
|
||||||
* @deprecated This function should not be used, as closing and opening a codec
|
|
||||||
* context multiple time is not supported. A new codec context should be
|
|
||||||
* allocated for each new use.
|
|
||||||
*/
|
|
||||||
int avcodec_get_context_defaults3(AVCodecContext *s, const AVCodec *codec);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the AVClass for AVCodecContext. It can be used in combination with
|
* Get the AVClass for AVCodecContext. It can be used in combination with
|
||||||
* AV_OPT_SEARCH_FAKE_OBJ for examining options.
|
* AV_OPT_SEARCH_FAKE_OBJ for examining options.
|
||||||
|
@ -160,13 +160,6 @@ static int init_context_defaults(AVCodecContext *s, const AVCodec *codec)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if FF_API_GET_CONTEXT_DEFAULTS
|
|
||||||
int avcodec_get_context_defaults3(AVCodecContext *s, const AVCodec *codec)
|
|
||||||
{
|
|
||||||
return init_context_defaults(s, codec);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
AVCodecContext *avcodec_alloc_context3(const AVCodec *codec)
|
AVCodecContext *avcodec_alloc_context3(const AVCodec *codec)
|
||||||
{
|
{
|
||||||
AVCodecContext *avctx= av_malloc(sizeof(AVCodecContext));
|
AVCodecContext *avctx= av_malloc(sizeof(AVCodecContext));
|
||||||
|
@ -66,9 +66,6 @@
|
|||||||
#ifndef FF_API_COPY_CONTEXT
|
#ifndef FF_API_COPY_CONTEXT
|
||||||
#define FF_API_COPY_CONTEXT (LIBAVCODEC_VERSION_MAJOR < 59)
|
#define FF_API_COPY_CONTEXT (LIBAVCODEC_VERSION_MAJOR < 59)
|
||||||
#endif
|
#endif
|
||||||
#ifndef FF_API_GET_CONTEXT_DEFAULTS
|
|
||||||
#define FF_API_GET_CONTEXT_DEFAULTS (LIBAVCODEC_VERSION_MAJOR < 59)
|
|
||||||
#endif
|
|
||||||
#ifndef FF_API_NVENC_OLD_NAME
|
#ifndef FF_API_NVENC_OLD_NAME
|
||||||
#define FF_API_NVENC_OLD_NAME (LIBAVCODEC_VERSION_MAJOR < 59)
|
#define FF_API_NVENC_OLD_NAME (LIBAVCODEC_VERSION_MAJOR < 59)
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user