[FFmpeg-cvslog] r12837 - trunk/libavformat/utils.c

michael subversion
Tue Apr 15 15:50:02 CEST 2008


Author: michael
Date: Tue Apr 15 15:50:02 2008
New Revision: 12837

Log:
Do not detect a format if another has the same score.


Modified:
   trunk/libavformat/utils.c

Modified: trunk/libavformat/utils.c
==============================================================================
--- trunk/libavformat/utils.c	(original)
+++ trunk/libavformat/utils.c	Tue Apr 15 15:50:02 2008
@@ -282,7 +282,8 @@ static AVInputFormat *av_probe_input_for
         if (score > *score_max) {
             *score_max = score;
             fmt = fmt1;
-        }
+        }else if (score == *score_max)
+            fmt = NULL;
     }
     return fmt;
 }




More information about the ffmpeg-cvslog mailing list