summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorHendrik Leppkes <h.leppkes@gmail.com>2016-06-26 14:35:10 +0200
committerHendrik Leppkes <h.leppkes@gmail.com>2016-06-26 14:35:10 +0200
commitf9a186c59b4c8fc65dd8298e62a76cb4a01ffc13 (patch)
tree9703ab1a6c240fdf613b1c10fd0c5deb2624504f /libavcodec
parent69c38d64d745c678f2f596f5932a5121b7aafc07 (diff)
parent2ef6dab0a79a9852a92ed80b07f9e32a37530d9e (diff)
Merge commit '2ef6dab0a79a9852a92ed80b07f9e32a37530d9e'
* commit '2ef6dab0a79a9852a92ed80b07f9e32a37530d9e': lavc: document that avcodec_close() should not be used Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/avcodec.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index 5f3c4b3015..efd386a918 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -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
* the codec-specific data allocated in avcodec_alloc_context3() with a non-NULL
* 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);