diff options
author | Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com> | 2015-12-23 15:05:32 -0800 |
---|---|---|
committer | Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com> | 2015-12-27 00:09:16 -0800 |
commit | baf4c489e5f468a208596cd128a6f1c49e6ae35b (patch) | |
tree | 8641bb724740272146b9ddadffc474dfd18705d7 | |
parent | b25ac3c999b0b486018279283667129bbad06d08 (diff) | |
download | ffmpeg-baf4c489e5f468a208596cd128a6f1c49e6ae35b.tar.gz |
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>
-rw-r--r-- | libavformat/avio.h | 2 | ||||
-rw-r--r-- | libavformat/aviobuf.c | 2 |
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); |