Imported Upstream version 6.1
[platform/upstream/ffmpeg.git] / libavformat / rtpdec_asf.c
index 72ead69..20ca829 100644 (file)
@@ -210,7 +210,7 @@ static int asfrtp_parse_packet(AVFormatContext *s, PayloadContext *asf,
 
         av_freep(&asf->buf);
 
-        ffio_init_context(pb0, (uint8_t *)buf, len, 0, NULL, NULL, NULL, NULL);
+        ffio_init_read_context(pb0, buf, len);
 
         while (avio_tell(pb) + 4 < len) {
             int start_off = avio_tell(pb);