diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-04-30 20:43:16 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-04-30 22:09:15 +0200 |
commit | 7d727f1338fb23ce26975ba0e5487d2fa5783d16 (patch) | |
tree | 080186557141e418db57e78461e9e1ac69706470 /libavformat/avformat.h | |
parent | a2eef3e9f579db4278ff32cba6281452a163b05f (diff) | |
download | ffmpeg-7d727f1338fb23ce26975ba0e5487d2fa5783d16.tar.gz |
LAVFAPI: avformat_alloc_output_context() / simplify usage of muxers.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/avformat.h')
-rw-r--r-- | libavformat/avformat.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/libavformat/avformat.h b/libavformat/avformat.h index c77cbbbda0..28b057469b 100644 --- a/libavformat/avformat.h +++ b/libavformat/avformat.h @@ -1048,6 +1048,13 @@ int av_open_input_file(AVFormatContext **ic_ptr, const char *filename, AVFormatContext *avformat_alloc_context(void); /** + * Allocate an AVFormatContext. + * avformat_free_context() can be used to free the context and everything + * allocated by the framework within it. + */ +AVFormatContext *avformat_alloc_output_context(const char *format, AVOutputFormat *oformat, const char *filename); + +/** * Read packets of a media file to get stream information. This * is useful for file formats with no headers such as MPEG. This * function also computes the real framerate in case of MPEG-2 repeat @@ -1295,7 +1302,7 @@ int64_t av_gen_search(AVFormatContext *s, int stream_index, /** * media file output */ -int av_set_parameters(AVFormatContext *s, AVFormatParameters *ap); +attribute_deprecated int av_set_parameters(AVFormatContext *s, AVFormatParameters *ap); /** * Split a URL string into components. |