---
Alternatively we could remove the last two places that still use
avcodec_close() (lavf and avconv), and deprecate it.
Vittorio

 libavcodec/avcodec.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index ace761d..e3c6070 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -3647,6 +3647,9 @@ AVCodecContext *avcodec_alloc_context3(const AVCodec 
*codec);
 /**
  * Free the codec context and everything associated with it and write NULL to
  * the provided pointer.
+ *
+ * @note There is no need to call avcodec_close() beforehand: this function
+ *       will properly release any codec resource associated with the context.
  */
 void avcodec_free_context(AVCodecContext **avctx);
 
-- 
2.9.1

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to