|
|
|
@@ -533,6 +533,7 @@ int avformat_open_input(AVFormatContext **ps, const char *filename, |
|
|
|
if ((ret = av_opt_set_dict(s, &tmp)) < 0) |
|
|
|
goto fail; |
|
|
|
|
|
|
|
av_strlcpy(s->filename, filename ? filename : "", sizeof(s->filename)); |
|
|
|
if ((ret = init_input(s, filename, &tmp)) < 0) |
|
|
|
goto fail; |
|
|
|
s->probe_score = ret; |
|
|
|
@@ -570,7 +571,6 @@ int avformat_open_input(AVFormatContext **ps, const char *filename, |
|
|
|
} |
|
|
|
|
|
|
|
s->duration = s->start_time = AV_NOPTS_VALUE; |
|
|
|
av_strlcpy(s->filename, filename ? filename : "", sizeof(s->filename)); |
|
|
|
|
|
|
|
/* Allocate private data. */ |
|
|
|
if (s->iformat->priv_data_size > 0) { |
|
|
|
|