Revision 59f65d95 libavformat/aviobuf.c

View differences:

libavformat/aviobuf.c
377 377
{
378 378
    return avio_size(s);
379 379
}
380
int url_setbufsize(AVIOContext *s, int buf_size)
381
{
382
    return ffio_set_buf_size(s, buf_size);
383
}
380 384
#endif
381 385

  
382 386
int avio_put_str(AVIOContext *s, const char *str)
......
490 494

  
491 495
    /* make buffer smaller in case it ended up large after probing */
492 496
    if (s->buffer_size > max_buffer_size) {
493
        url_setbufsize(s, max_buffer_size);
497
        ffio_set_buf_size(s, max_buffer_size);
494 498

  
495 499
        s->checksum_ptr = dst = s->buffer;
496 500
        len = s->buffer_size;
......
801 805
    return 0;
802 806
}
803 807

  
804
int url_setbufsize(AVIOContext *s, int buf_size)
808
int ffio_set_buf_size(AVIOContext *s, int buf_size)
805 809
{
806 810
    uint8_t *buffer;
807 811
    buffer = av_malloc(buf_size);

Also available in: Unified diff