fix missdetection of mpeg-ps (ps2_interdite.mpg)
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 8 Nov 2006 22:49:55 +0000 (22:49 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 8 Nov 2006 22:49:55 +0000 (22:49 +0000)
Originally committed as revision 6948 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/mp3.c

index 0e39d25..723980c 100644 (file)
@@ -256,7 +256,7 @@ static int mp3_read_probe(AVProbeData *p)
         return 0;
 
     if(id3_match(p->buf))
-        return AVPROBE_SCORE_MAX;
+        return AVPROBE_SCORE_MAX/2+1; // this must be less then mpeg-ps because some retards put id3 tage before mpeg-ps files
 
     max_frames = 0;
     buf = p->buf;