aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/avformat.h
diff options
context:
space:
mode:
authorAnshul Maheshwari <er.anshul.maheshwari@gmail.com>2013-07-24 12:20:02 +0530
committerMichael Niedermayer <michaelni@gmx.at>2013-07-24 12:49:01 +0200
commita553cb4683a2da078166cbfd7b839c3b3ef5dbe2 (patch)
tree627314360d42123e4436443b85a8c663f357e751 /libavformat/avformat.h
parent800637709c8253862f9cb19f5f9be44a8873a693 (diff)
downloadffmpeg-a553cb4683a2da078166cbfd7b839c3b3ef5dbe2.tar.gz
documented that av_codec_close is required to call
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/avformat.h')
-rw-r--r--libavformat/avformat.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/avformat.h b/libavformat/avformat.h
index 04fad94219..d5f8a29869 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.