Revision d9d86e00 libavformat/aviobuf.c

View differences:

libavformat/aviobuf.c
381 381
{
382 382
    return ffio_set_buf_size(s, buf_size);
383 383
}
384
int url_fprintf(AVIOContext *s, const char *fmt, ...)
385
{
386
    va_list ap;
387
    char buf[4096];
388
    int ret;
389

  
390
    va_start(ap, fmt);
391
    ret = vsnprintf(buf, sizeof(buf), fmt, ap);
392
    va_end(ap);
393
    avio_write(s, buf, strlen(buf));
394
    return ret;
395
}
384 396
#endif
385 397

  
386 398
int avio_put_str(AVIOContext *s, const char *str)
......
913 925
}
914 926

  
915 927
#if CONFIG_MUXERS
916
int url_fprintf(AVIOContext *s, const char *fmt, ...)
928
int avio_printf(AVIOContext *s, const char *fmt, ...)
917 929
{
918 930
    va_list ap;
919 931
    char buf[4096];

Also available in: Unified diff