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:
parent
5ef5501b71
commit
2db971135a
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user