return a slightly larger score if we find more than 500 valid mp3 frames in a row

Originally committed as revision 11148 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer 2007-12-03 09:26:44 +00:00
parent 5ef5501b71
commit 2db971135a
1 changed files with 1 additions and 0 deletions

View File

@ -420,6 +420,7 @@ static int mp3_read_probe(AVProbeData *p)
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;