changeset 5191:9affc096944c libavformat

Make h261 and mpegvideo probe a little more robust so they dont fail with slightly different probetest.
author michael
date Tue, 15 Sep 2009 13:27:13 +0000
parents 4277da592002
children ef6c4a95acb8
files raw.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/raw.c	Tue Sep 15 12:20:03 2009 +0000
+++ b/raw.c	Tue Sep 15 13:27:13 2009 +0000
@@ -326,7 +326,7 @@
         }
     }
     if(seq && seq*9<=pic*10 && pic*9<=slice*10 && !pspack && !pes)
-        return AVPROBE_SCORE_MAX/2+1; // +1 for .mpg
+        return pic>1 ? AVPROBE_SCORE_MAX/2+1 : AVPROBE_SCORE_MAX/4; // +1 for .mpg
     return 0;
 }
 #endif
@@ -515,7 +515,7 @@
             }
         }
     }
-    if(valid_psc > 2*invalid_psc + 4){
+    if(valid_psc > 2*invalid_psc + 6){
         return 50;
     }else if(valid_psc > 2*invalid_psc + 2)
         return 25;