changeset 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 a782462e2497
children b8656dd86312
files utils.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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) {