Revision ae99313a libavformat/rtpdec_asf.c

View differences:

libavformat/rtpdec_asf.c
32 32
#include "rtpdec_formats.h"
33 33
#include "rtsp.h"
34 34
#include "asf.h"
35
#include "avio_internal.h"
35 36

  
36 37
/**
37 38
 * From MSDN 2.2.1.4, we learn that ASF data packets over RTP should not
......
84 85

  
85 86
static void init_packetizer(AVIOContext *pb, uint8_t *buf, int len)
86 87
{
87
    init_put_byte(pb, buf, len, 0, NULL, packetizer_read, NULL, NULL);
88
    ffio_init_context(pb, buf, len, 0, NULL, packetizer_read, NULL, NULL);
88 89

  
89 90
    /* this "fills" the buffer with its current content */
90 91
    pb->pos     = len;
......
176 177

  
177 178
        av_freep(&asf->buf);
178 179

  
179
        init_put_byte(pb, buf, len, 0, NULL, NULL, NULL, NULL);
180
        ffio_init_context(pb, buf, len, 0, NULL, NULL, NULL, NULL);
180 181

  
181 182
        while (url_ftell(pb) + 4 < len) {
182 183
            int start_off = url_ftell(pb);

Also available in: Unified diff