Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Sebechlebsky <sebechlebskyjan@gmail.com>2016-07-04 17:45:13 +0300
committerMarton Balint <cus@passwd.hu>2016-07-16 02:29:44 +0300
commit6a3515a5a49e985b0f2ce430c9cae9e21dd6d7c2 (patch)
treeaeb66222c9e9d967d47be3fc7ad6eafbfd7040d6 /libavformat/internal.h
parente144b86fa4c7e178f2a7a9436ac2a89a82b58b09 (diff)
avformat/utils: Add ff_format_output_open() function
Add ff_format_output_open utility function to wrap io_open callback of AVFormatContext structure. Signed-off-by: Jan Sebechlebsky <sebechlebskyjan@gmail.com> Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'libavformat/internal.h')
-rw-r--r--libavformat/internal.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/libavformat/internal.h b/libavformat/internal.h
index 1b44beafb3..0119749ec2 100644
--- a/libavformat/internal.h
+++ b/libavformat/internal.h
@@ -572,6 +572,16 @@ int ffio_open2_wrapper(struct AVFormatContext *s, AVIOContext **pb, const char *
*/
#define FFERROR_REDO FFERRTAG('R','E','D','O')
+/**
+ * Utility function to open IO stream of output format.
+ *
+ * @param s AVFormatContext
+ * @param url URL or file name to open for writing
+ * @options optional options which will be passed to io_open callback
+ * @return >=0 on success, negative AVERROR in case of failure
+ */
+int ff_format_output_open(AVFormatContext *s, const char *url, AVDictionary **options);
+
/*
* A wrapper around AVFormatContext.io_close that should be used
* instead of calling the pointer directly.