Commit 3495249e authored by reimar's avatar reimar

Demuxers with AVFMT_NOFILE will open a (possibly different) file themselves,

so do not probe them if is_opened is set.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@7589 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 8becf910
...@@ -279,7 +279,7 @@ AVInputFormat *av_probe_input_format(AVProbeData *pd, int is_opened) ...@@ -279,7 +279,7 @@ AVInputFormat *av_probe_input_format(AVProbeData *pd, int is_opened)
fmt = NULL; fmt = NULL;
score_max = 0; score_max = 0;
for(fmt1 = first_iformat; fmt1 != NULL; fmt1 = fmt1->next) { for(fmt1 = first_iformat; fmt1 != NULL; fmt1 = fmt1->next) {
if (!is_opened && !(fmt1->flags & AVFMT_NOFILE)) if (!is_opened == !(fmt1->flags & AVFMT_NOFILE))
continue; continue;
score = 0; score = 0;
if (fmt1->read_probe) { if (fmt1->read_probe) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment