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:
authorMichael Niedermayer <michael@niedermayer.cc>2016-08-03 21:34:20 +0300
committerMichael Niedermayer <michael@niedermayer.cc>2016-08-05 00:22:54 +0300
commit82a33c8d858498fc4e0b8ab93ad323a05dfd5168 (patch)
treea6b3a17bbf86daec3abc146544a9889a64ec1e3c /libavformat/avformat.h
parentbe63ef3c4e6399a3ef8d22cc25e9cb3575cf74ae (diff)
avformat: Add av_get_frame_filename2() and AV_FRAME_FILENAME_FLAGS_MULTIPLE
This will be used to allow writing file sequences using the tee output onto multiple places in parallel Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat/avformat.h')
-rw-r--r--libavformat/avformat.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/libavformat/avformat.h b/libavformat/avformat.h
index b9fbb06560..d8a6cf3392 100644
--- a/libavformat/avformat.h
+++ b/libavformat/avformat.h
@@ -2720,6 +2720,9 @@ void av_dump_format(AVFormatContext *ic,
const char *url,
int is_output);
+
+#define AV_FRAME_FILENAME_FLAGS_MULTIPLE 1 ///< Allow multiple %d
+
/**
* Return in 'buf' the path with '%d' replaced by a number.
*
@@ -2730,8 +2733,12 @@ void av_dump_format(AVFormatContext *ic,
* @param buf_size destination buffer size
* @param path numbered sequence string
* @param number frame number
+ * @param flags AV_FRAME_FILENAME_FLAGS_*
* @return 0 if OK, -1 on format error
*/
+int av_get_frame_filename2(char *buf, int buf_size,
+ const char *path, int number, int flags);
+
int av_get_frame_filename(char *buf, int buf_size,
const char *path, int number);