[FFmpeg-devel] [PATCH]Make loas probe more similar to mp3 probe
    Carl Eugen Hoyos 
    cehoyos at ag.or.at
       
    Tue Aug  5 22:28:38 CEST 2014
    
    
  
Hi!
Attached patch copies one line from mp3dec.c into loasdec.c to force probing 
more data and fixes ticket #3821. An alternative is to remove the offending 
line from mp3dec.c (it was added in 2006 or earlier).
Please review, Carl Eugen
-------------- next part --------------
diff --git a/libavformat/loasdec.c b/libavformat/loasdec.c
index c41809b..26d37cb 100644
--- a/libavformat/loasdec.c
+++ b/libavformat/loasdec.c
@@ -61,6 +61,8 @@ static int loas_probe(AVProbeData *p)
         return AVPROBE_SCORE_EXTENSION;
     else if (max_frames >= 3)
         return AVPROBE_SCORE_EXTENSION / 2;
+    else if (max_frames>=1 && max_frames >= p->buf_size/10000)
+        return 1;
     else
         return 0;
 }
    
    
More information about the ffmpeg-devel
mailing list