From 88808c60afe1a8fd3bf347dc486c8b8a49c2ebbb Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 15 Dec 2007 16:54:58 +0000 Subject: [PATCH] document how to free the result of av_alloc_format_context() Originally committed as revision 11225 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/avformat.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libavformat/avformat.h b/libavformat/avformat.h index 9c8419a6a9..bc6f3f1179 100644 --- a/libavformat/avformat.h +++ b/libavformat/avformat.h @@ -569,7 +569,11 @@ int av_open_input_file(AVFormatContext **ic_ptr, const char *filename, AVInputFormat *fmt, int buf_size, AVFormatParameters *ap); -/** no av_open for output, so applications will need this: */ +/** + * Allocate an AVFormatContext. + * can be freed with av_free() but dont forget to free everything you + * explicitly allocated as well! + */ AVFormatContext *av_alloc_format_context(void); /**