Mercurial > libavformat.hg
diff mp3.c @ 4900:d24b4e25db8d libavformat
Require 4 instead of 3 frames for detecting mp3,
fixes misdetection of mpegps_mp3_unrecognized_format.mpg (issue997)
author | michael |
---|---|
date | Wed, 22 Apr 2009 02:58:20 +0000 |
parents | fbe515ed10fd |
children | eb6dd7717805 |
line wrap: on
line diff
--- a/mp3.c Tue Apr 21 23:23:15 2009 +0000 +++ b/mp3.c Wed Apr 22 02:58:20 2009 +0000 @@ -391,10 +391,11 @@ } 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>=4) return AVPROBE_SCORE_MAX/4; else if(buf0!=p->buf) return AVPROBE_SCORE_MAX/4-1; else if(max_frames>=1) return 1; else return 0; +//mpegps_mp3_unrecognized_format.mpg has max_frames=3 } /**