]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/mp3.c
spoke too fast, fix dv fourcc in mov accordingly if strict
[ffmpeg] / libavformat / mp3.c
index 39cb60d579e4db46d6563ed8d3d0d181f5e4f8a3..5d6af0f9b676a7b9bec7a1703cf57967739a9248 100644 (file)
@@ -405,7 +405,7 @@ static int mp3_read_probe(AVProbeData *p)
     buf = p->buf;
     end = buf + p->buf_size - sizeof(uint32_t);
 
-    for(; buf < end; buf++) {
+    for(; buf < end; buf= buf2+1) {
         buf2 = buf;
 
         for(frames = 0; buf2 < end; frames++) {
@@ -418,10 +418,9 @@ static int mp3_read_probe(AVProbeData *p)
         max_frames = FFMAX(max_frames, frames);
         if(buf == p->buf)
             first_frames= frames;
-        if(buf2 > end)
-            break;
     }
     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;