]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
Make the MP3 probe weakly claim all files with ID3v2 tags to fix regressions on
authoralexc <alexc@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Thu, 5 Feb 2009 18:41:06 +0000 (18:41 +0000)
committeralexc <alexc@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Thu, 5 Feb 2009 18:41:06 +0000 (18:41 +0000)
files with very large tags.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17008 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

libavformat/mp3.c

index 21e1fd9e5bc5602f3d1fc19b2c1ee9a8ed995d67..a887c3da8da1a0cdc0c7201460f783f9f2fcdde2 100644 (file)
@@ -391,6 +391,7 @@ static int mp3_read_probe(AVProbeData *p)
     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(buf0!=p->buf)  return AVPROBE_SCORE_MAX/4-1;
     else if(max_frames>=1) return 1;
     else                   return 0;
 }