From baf4c489e5f468a208596cd128a6f1c49e6ae35b Mon Sep 17 00:00:00 2001 From: "Reynaldo H. Verdejo Pinochet" Date: Wed, 23 Dec 2015 15:05:32 -0800 Subject: [PATCH] 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 --- 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 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);