diff utils.c @ 1674:a216ebdce1ff libavformat

Demuxers with AVFMT_NOFILE will open a (possibly different) file themselves, so do not probe them if is_opened is set.
author reimar
date Fri, 19 Jan 2007 22:52:59 +0000
parents e4f1922ac981
children b8656dd86312
line wrap: on
line diff
--- 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) {