Revision 83fddaeb

View differences:

ffserver.c
2721 2721
            if (!fmt_in)
2722 2722
                goto fail;
2723 2723

  
2724
            url_open_buf(&pb, c->buffer, c->buffer_end - c->buffer, URL_RDONLY);
2724
            pb = avio_alloc_context(c->buffer, c->buffer_end - c->buffer,
2725
                                    0, NULL, NULL, NULL, NULL);
2725 2726
            pb->is_streamed = 1;
2726 2727

  
2727 2728
            if (av_open_input_stream(&s, pb, c->stream->feed_filename, fmt_in, NULL) < 0) {
libavformat/avio.h
629 629
 * @deprecated use AVIOContext.max_packet_size directly.
630 630
 */
631 631
attribute_deprecated int url_fget_max_packet_size(AVIOContext *s);
632
#endif
633 632

  
634
int url_open_buf(AVIOContext **s, uint8_t *buf, int buf_size, int flags);
633
attribute_deprecated int url_open_buf(AVIOContext **s, uint8_t *buf, int buf_size, int flags);
634
#endif
635 635

  
636 636
/** return the written or read size */
637 637
int url_close_buf(AVIOContext *s);
libavformat/aviobuf.c
996 996
 * back to the server even if CONFIG_MUXERS is false. */
997 997
#if CONFIG_MUXERS || CONFIG_NETWORK
998 998
/* buffer handling */
999
#if FF_API_OLD_AVIO
999 1000
int url_open_buf(AVIOContext **s, uint8_t *buf, int buf_size, int flags)
1000 1001
{
1001 1002
    int ret;
......
1009 1010
        av_freep(s);
1010 1011
    return ret;
1011 1012
}
1013
#endif
1012 1014

  
1013 1015
int url_close_buf(AVIOContext *s)
1014 1016
{

Also available in: Unified diff