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:
authorStefano Sabatini <stefasab@gmail.com>2022-06-12 14:15:26 +0300
committerMarton Balint <cus@passwd.hu>2022-06-13 23:42:55 +0300
commit7cae3d8b7685dda77b14aeab3a0fee22547e8f1d (patch)
tree0027a5507971076f74220fc9ce4bc37ba513427b /libavformat/avio.h
parent4d45f5acbd9ab55cd8d29d01843f28315ee27fee (diff)
lavf/avio: add avio_vprintf()
This new function makes it possible to use avio_printf() functionality from a function taking a variable list of arguments. Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'libavformat/avio.h')
-rw-r--r--libavformat/avio.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libavformat/avio.h b/libavformat/avio.h
index 3ed9175a9b..36c3d7b430 100644
--- a/libavformat/avio.h
+++ b/libavformat/avio.h
@@ -520,6 +520,12 @@ int64_t avio_size(AVIOContext *s);
int avio_feof(AVIOContext *s);
/**
+ * Writes a formatted string to the context taking a va_list.
+ * @return number of bytes written, < 0 on error.
+ */
+int avio_vprintf(AVIOContext *s, const char *fmt, va_list ap);
+
+/**
* Writes a formatted string to the context.
* @return number of bytes written, < 0 on error.
*/