[FFmpeg-cvslog] avio: add detail to avio_printf() size warning

Reynaldo H. Verdejo Pinochet git at videolan.org
Sun Dec 27 09:19:59 CET 2015


ffmpeg | branch: master | Reynaldo H. Verdejo Pinochet <reynaldo at osg.samsung.com> | Wed Dec 23 15:05:32 2015 -0800| [baf4c489e5f468a208596cd128a6f1c49e6ae35b] | committer: Reynaldo H. Verdejo Pinochet

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 at osg.samsung.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=baf4c489e5f468a208596cd128a6f1c49e6ae35b
---

 libavformat/avio.h    |    2 +-
 libavformat/aviobuf.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavformat/avio.h b/libavformat/avio.h
index abe13b2..c3c0b73 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 c2aa8dc..57cbf83 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);



More information about the ffmpeg-cvslog mailing list