diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2007-12-15 16:54:58 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2007-12-15 16:54:58 +0000 |
commit | 88808c60afe1a8fd3bf347dc486c8b8a49c2ebbb (patch) | |
tree | 9be82b2283f56bb3a4ba1eb47ed5e87a8ec03fe7 /libavformat/avformat.h | |
parent | 30dc5541535259be3c02301501789792bf35885a (diff) | |
download | ffmpeg-88808c60afe1a8fd3bf347dc486c8b8a49c2ebbb.tar.gz |
document how to free the result of av_alloc_format_context()
Originally committed as revision 11225 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/avformat.h')
-rw-r--r-- | libavformat/avformat.h | 6 |
1 files changed, 5 insertions, 1 deletions
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); /** |