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

so do not probe them if is_opened is set.

Originally committed as revision 7589 to svn://svn.ffmpeg.org/ffmpeg/trunk
pull/126/head
Reimar Döffinger 18 years ago
parent a3550abd08
commit b8e705ec45
  1. 2
      libavformat/utils.c

@ -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) {

Loading…
Cancel
Save