# HG changeset patch # User reimar # Date 1169247179 0 # Node ID a216ebdce1ff573fcf85d025e95a512185465ee7 # Parent a782462e2497db01878013b844c5fa5d4773b539 Demuxers with AVFMT_NOFILE will open a (possibly different) file themselves, so do not probe them if is_opened is set. diff -r a782462e2497 -r a216ebdce1ff utils.c --- a/utils.c Fri Jan 19 22:12:59 2007 +0000 +++ b/utils.c Fri Jan 19 22:52:59 2007 +0000 @@ -279,7 +279,7 @@ fmt = NULL; score_max = 0; for(fmt1 = first_iformat; fmt1 != NULL; fmt1 = fmt1->next) { - if (!is_opened && !(fmt1->flags & AVFMT_NOFILE)) + if (!is_opened == !(fmt1->flags & AVFMT_NOFILE)) continue; score = 0; if (fmt1->read_probe) {