Commit 2db97113 authored by Michael Niedermayer's avatar Michael Niedermayer

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
parent 5ef5501b
...@@ -420,6 +420,7 @@ static int mp3_read_probe(AVProbeData *p) ...@@ -420,6 +420,7 @@ static int mp3_read_probe(AVProbeData *p)
first_frames= frames; first_frames= frames;
} }
if (first_frames>=3) return AVPROBE_SCORE_MAX/2+1; 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>=3) return AVPROBE_SCORE_MAX/4;
else if(max_frames>=1) return 1; else if(max_frames>=1) return 1;
else return 0; else return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment