summaryrefslogtreecommitdiff
path: root/libavformat/avio.h
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2019-08-05 22:27:47 +0200
committerMarton Balint <cus@passwd.hu>2019-08-17 18:39:49 +0200
commit95fa73a2b48fe8e73fb2b25d3b272da1bbd167b3 (patch)
treef5e49d23de3b4f00227c7763139b2066bdf2528e /libavformat/avio.h
parent61b4daf78ce09534b258aae6b86934ce98d2b27f (diff)
avformat/avio: remove 4k limit from avio_printf
We do this by switching to AVBPrint. v2: Also set IO context error flag in case of ENOMEM. Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'libavformat/avio.h')
-rw-r--r--libavformat/avio.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/libavformat/avio.h b/libavformat/avio.h
index 910e4f1b48..9141642e75 100644
--- a/libavformat/avio.h
+++ b/libavformat/avio.h
@@ -571,7 +571,10 @@ int64_t avio_size(AVIOContext *s);
*/
int avio_feof(AVIOContext *s);
-/** @warning Writes up to 4 KiB per call */
+/**
+ * Writes a formatted string to the context.
+ * @return number of bytes written, < 0 on error.
+ */
int avio_printf(AVIOContext *s, const char *fmt, ...) av_printf_format(2, 3);
/**