1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

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

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;