changeset 3227:5b8e94932999 libavformat

Do not detect a format if another has the same score.
author michael
date Tue, 15 Apr 2008 13:50:02 +0000
parents dcde7da1d183
children 697a11d7e3cf
files utils.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/utils.c	Tue Apr 15 13:48:46 2008 +0000
+++ b/utils.c	Tue Apr 15 13:50:02 2008 +0000
@@ -282,7 +282,8 @@
         if (score > *score_max) {
             *score_max = score;
             fmt = fmt1;
-        }
+        }else if (score == *score_max)
+            fmt = NULL;
     }
     return fmt;
 }