Revision 403ee835 ffserver.c

View differences:

ffserver.c
33 33
#include "libavformat/os_support.h"
34 34
#include "libavformat/rtpdec.h"
35 35
#include "libavformat/rtsp.h"
36
// XXX for ffio_open_dyn_packet_buffer, to be removed
37
#include "libavformat/avio_internal.h"
36 38
#include "libavutil/avstring.h"
37 39
#include "libavutil/lfg.h"
38 40
#include "libavutil/random_seed.h"
......
2389 2391
                            max_packet_size = RTSP_TCP_MAX_PACKET_SIZE;
2390 2392
                        else
2391 2393
                            max_packet_size = url_get_max_packet_size(c->rtp_handles[c->packet_stream_index]);
2392
                        ret = url_open_dyn_packet_buf(&ctx->pb, max_packet_size);
2394
                        ret = ffio_open_dyn_packet_buf(&ctx->pb, max_packet_size);
2393 2395
                    } else {
2394 2396
                        ret = avio_open_dyn_buf(&ctx->pb);
2395 2397
                    }
......
3444 3446
             c->stream->filename, stream_index, c->protocol);
3445 3447

  
3446 3448
    /* normally, no packets should be output here, but the packet size may be checked */
3447
    if (url_open_dyn_packet_buf(&ctx->pb, max_packet_size) < 0) {
3449
    if (ffio_open_dyn_packet_buf(&ctx->pb, max_packet_size) < 0) {
3448 3450
        /* XXX: close stream */
3449 3451
        goto fail;
3450 3452
    }

Also available in: Unified diff