|
|
@ -2411,6 +2411,7 @@ int avcodec_parameters_to_context(AVCodecContext *codec, |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
int avcodec_open2(AVCodecContext *avctx, const AVCodec *codec, AVDictionary **options); |
|
|
|
int avcodec_open2(AVCodecContext *avctx, const AVCodec *codec, AVDictionary **options); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#if FF_API_AVCODEC_CLOSE |
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Close a given AVCodecContext and free all the data associated with it |
|
|
|
* Close a given AVCodecContext and free all the data associated with it |
|
|
|
* (but not the AVCodecContext itself). |
|
|
|
* (but not the AVCodecContext itself). |
|
|
@ -2419,12 +2420,14 @@ int avcodec_open2(AVCodecContext *avctx, const AVCodec *codec, AVDictionary **op |
|
|
|
* the codec-specific data allocated in avcodec_alloc_context3() with a non-NULL |
|
|
|
* the codec-specific data allocated in avcodec_alloc_context3() with a non-NULL |
|
|
|
* codec. Subsequent calls will do nothing. |
|
|
|
* codec. Subsequent calls will do nothing. |
|
|
|
* |
|
|
|
* |
|
|
|
* @note Do not use this function. Use avcodec_free_context() to destroy a |
|
|
|
* @deprecated Do not use this function. Use avcodec_free_context() to destroy a |
|
|
|
* codec context (either open or closed). Opening and closing a codec context |
|
|
|
* codec context (either open or closed). Opening and closing a codec context |
|
|
|
* multiple times is not supported anymore -- use multiple codec contexts |
|
|
|
* multiple times is not supported anymore -- use multiple codec contexts |
|
|
|
* instead. |
|
|
|
* instead. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
attribute_deprecated |
|
|
|
int avcodec_close(AVCodecContext *avctx); |
|
|
|
int avcodec_close(AVCodecContext *avctx); |
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Free all allocated data in the given subtitle struct. |
|
|
|
* Free all allocated data in the given subtitle struct. |
|
|
|