diff options
author | Anton Khirnov <anton@khirnov.net> | 2011-03-14 20:39:02 +0100 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2011-03-16 22:59:39 -0400 |
commit | d9d86e00b2891a2651fd41f0d2d220a67f7968c3 (patch) | |
tree | 1f5ad873dd78d180b24dba6bc56cf404fa474535 /libavformat/aviobuf.c | |
parent | af02073225e5b34a8ea72bd3ff531868ed0b5061 (diff) | |
download | ffmpeg-d9d86e00b2891a2651fd41f0d2d220a67f7968c3.tar.gz |
avio: avio_ prefix for url_fprintf
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
Diffstat (limited to 'libavformat/aviobuf.c')
-rw-r--r-- | libavformat/aviobuf.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/libavformat/aviobuf.c b/libavformat/aviobuf.c index 7d84b2b293..7fbe4ce76c 100644 --- a/libavformat/aviobuf.c +++ b/libavformat/aviobuf.c @@ -381,6 +381,18 @@ int url_setbufsize(AVIOContext *s, int buf_size) { return ffio_set_buf_size(s, buf_size); } +int url_fprintf(AVIOContext *s, const char *fmt, ...) +{ + va_list ap; + char buf[4096]; + int ret; + + va_start(ap, fmt); + ret = vsnprintf(buf, sizeof(buf), fmt, ap); + va_end(ap); + avio_write(s, buf, strlen(buf)); + return ret; +} #endif int avio_put_str(AVIOContext *s, const char *str) @@ -913,7 +925,7 @@ URLContext *url_fileno(AVIOContext *s) } #if CONFIG_MUXERS -int url_fprintf(AVIOContext *s, const char *fmt, ...) +int avio_printf(AVIOContext *s, const char *fmt, ...) { va_list ap; char buf[4096]; |