[FFmpeg-cvslog] documented that av_codec_close is required to call

Anshul Maheshwari git at videolan.org
Wed Jul 24 12:56:22 CEST 2013


ffmpeg | branch: master | Anshul Maheshwari <er.anshul.maheshwari at gmail.com> | Wed Jul 24 12:38:02 2013 +0530| [a553cb4683a2da078166cbfd7b839c3b3ef5dbe2] | committer: Michael Niedermayer

documented that av_codec_close is required to call

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a553cb4683a2da078166cbfd7b839c3b3ef5dbe2
---

 libavformat/avformat.h |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/libavformat/avformat.h b/libavformat/avformat.h
index 04fad94..d5f8a29 100644
--- a/libavformat/avformat.h
+++ b/libavformat/avformat.h
@@ -1405,6 +1405,9 @@ const AVClass *avformat_get_class(void);
  *
  * When muxing, should be called by the user before avformat_write_header().
  *
+ * User is required to call avcodec_close() and avformat_free_context() to
+ * clean up the allocation by avformat_new_stream().
+ *
  * @param c If non-NULL, the AVCodecContext corresponding to the new stream
  * will be initialized to use this codec. This is needed for e.g. codec-specific
  * defaults to be set, so codec should be provided if it is known.



More information about the ffmpeg-cvslog mailing list