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
pull/126/head
Michael Niedermayer 17 years ago
parent 5ef5501b71
commit 2db971135a
  1. 1
      libavformat/mp3.c

@ -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;

Loading…
Cancel
Save