Merge commit '2ef6dab0a79a9852a92ed80b07f9e32a37530d9e'
* commit '2ef6dab0a79a9852a92ed80b07f9e32a37530d9e': lavc: document that avcodec_close() should not be used Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
This commit is contained in:
commit
f9a186c59b
@ -4271,6 +4271,11 @@ int avcodec_open2(AVCodecContext *avctx, const AVCodec *codec, AVDictionary **op
|
|||||||
* Calling this function on an AVCodecContext that hasn't been opened will free
|
* Calling this function on an AVCodecContext that hasn't been opened will free
|
||||||
* 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
|
||||||
|
* codec context (either open or closed). Opening and closing a codec context
|
||||||
|
* multiple times is not supported anymore -- use multiple codec contexts
|
||||||
|
* instead.
|
||||||
*/
|
*/
|
||||||
int avcodec_close(AVCodecContext *avctx);
|
int avcodec_close(AVCodecContext *avctx);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user