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:
authorReynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>2015-12-24 02:05:32 +0300
committerReynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>2015-12-27 11:09:16 +0300
commitbaf4c489e5f468a208596cd128a6f1c49e6ae35b (patch)
tree8641bb724740272146b9ddadffc474dfd18705d7 /libavformat
parentb25ac3c999b0b486018279283667129bbad06d08 (diff)
avio: add detail to avio_printf() size warning
Previous "currently size is limited" didn't give away much in terms of useful info. Signed-off-by: Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/avio.h2
-rw-r--r--libavformat/aviobuf.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/avio.h b/libavformat/avio.h
index abe13b2719..c3c0b73f2c 100644
--- a/libavformat/avio.h
+++ b/libavformat/avio.h
@@ -458,7 +458,7 @@ attribute_deprecated
int url_feof(AVIOContext *s);
#endif
-/** @warning currently size is limited */
+/** @warning Writes up to 4 KiB per call */
int avio_printf(AVIOContext *s, const char *fmt, ...) av_printf_format(2, 3);
/**
diff --git a/libavformat/aviobuf.c b/libavformat/aviobuf.c
index c2aa8dc96e..57cbf8311d 100644
--- a/libavformat/aviobuf.c
+++ b/libavformat/aviobuf.c
@@ -968,7 +968,7 @@ int avio_closep(AVIOContext **s)
int avio_printf(AVIOContext *s, const char *fmt, ...)
{
va_list ap;
- char buf[4096];
+ char buf[4096]; /* update doc entry in avio.h if changed */
int ret;
va_start(ap, fmt);