# HG changeset patch # User michael # Date 1240369100 0 # Node ID d24b4e25db8d0697b2a782245a12f4bdc3982d7b # Parent 52992e9a0109920f113aaa7488ee56bd1929c244 Require 4 instead of 3 frames for detecting mp3, fixes misdetection of mpegps_mp3_unrecognized_format.mpg (issue997) diff -r 52992e9a0109 -r d24b4e25db8d mp3.c --- 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 } /**