|
|
|
@ -575,7 +575,7 @@ int av_open_input_file(AVFormatContext **ic_ptr, const char *filename, |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
/* open input file and probe the format if necessary */ |
|
|
|
|
static int init_input(AVFormatContext *s, const char *filename) |
|
|
|
|
static int init_input(AVFormatContext *s, const char *filename, AVDictionary **options) |
|
|
|
|
{ |
|
|
|
|
int ret; |
|
|
|
|
AVProbeData pd = {filename, NULL, 0}; |
|
|
|
@ -594,7 +594,7 @@ static int init_input(AVFormatContext *s, const char *filename) |
|
|
|
|
return 0; |
|
|
|
|
|
|
|
|
|
if ((ret = avio_open2(&s->pb, filename, AVIO_FLAG_READ, |
|
|
|
|
&s->interrupt_callback, NULL)) < 0) |
|
|
|
|
&s->interrupt_callback, options)) < 0) |
|
|
|
|
return ret; |
|
|
|
|
if (s->iformat) |
|
|
|
|
return 0; |
|
|
|
@ -619,7 +619,7 @@ int avformat_open_input(AVFormatContext **ps, const char *filename, AVInputForma |
|
|
|
|
if ((ret = av_opt_set_dict(s, &tmp)) < 0) |
|
|
|
|
goto fail; |
|
|
|
|
|
|
|
|
|
if ((ret = init_input(s, filename)) < 0) |
|
|
|
|
if ((ret = init_input(s, filename, &tmp)) < 0) |
|
|
|
|
goto fail; |
|
|
|
|
|
|
|
|
|
/* check filename in case an image number is expected */ |
|
|
|
|