diff utils.c @ 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 19fe207a2fa4
children ab26f1c6c5d3
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;
 }