changeset 2798:51e0a502392f libavformat

return a slightly larger score if we find more than 500 valid mp3 frames in a row
author michael
date Mon, 03 Dec 2007 09:26:44 +0000
parents 428c1678b21f
children 3850229bba07
files mp3.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mp3.c	Mon Dec 03 08:27:04 2007 +0000
+++ b/mp3.c	Mon Dec 03 09:26:44 2007 +0000
@@ -420,6 +420,7 @@
             first_frames= frames;
     }
     if   (first_frames>=3) return AVPROBE_SCORE_MAX/2+1;
+    else if(max_frames>500)return AVPROBE_SCORE_MAX/2;
     else if(max_frames>=3) return AVPROBE_SCORE_MAX/4;
     else if(max_frames>=1) return 1;
     else                   return 0;