avformat: Use avio_open2, pass the AVFormatContext interrupt_callback onwards

Signed-off-by: Anton Khirnov <anton@khirnov.net>
This commit is contained in:
Martin Storsjö
2011-11-06 23:11:29 +02:00
committed by Anton Khirnov
parent 1dee0aca74
commit 9d77a8faf9
5 changed files with 14 additions and 8 deletions

View File

@@ -593,7 +593,8 @@ static int init_input(AVFormatContext *s, const char *filename)
(!s->iformat && (s->iformat = av_probe_input_format(&pd, 0))))
return 0;
if ((ret = avio_open(&s->pb, filename, AVIO_FLAG_READ)) < 0)
if ((ret = avio_open2(&s->pb, filename, AVIO_FLAG_READ,
&s->interrupt_callback, NULL)) < 0)
return ret;
if (s->iformat)
return 0;