[FFmpeg-cvslog] mp3probe: Detect mp3 stronger with just 200 frames, this should speed up detection

Michael Niedermayer git at videolan.org
Wed Nov 30 18:20:22 CET 2011


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Nov 30 18:07:20 2011 +0100| [b51eaf3b8ce85419038d1f8be9146a45febcddb4] | committer: Michael Niedermayer

mp3probe: Detect mp3 stronger with just 200 frames, this should speed up detection
on mp3 streams.

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b51eaf3b8ce85419038d1f8be9146a45febcddb4
---

 libavformat/mp3dec.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavformat/mp3dec.c b/libavformat/mp3dec.c
index 3101bae..56311a5 100644
--- a/libavformat/mp3dec.c
+++ b/libavformat/mp3dec.c
@@ -63,7 +63,7 @@ static int mp3_read_probe(AVProbeData *p)
     // keep this in sync with ac3 probe, both need to avoid
     // issues with MPEG-files!
     if   (first_frames>=4) return AVPROBE_SCORE_MAX/2+1;
-    else if(max_frames>500)return AVPROBE_SCORE_MAX/2;
+    else if(max_frames>200)return AVPROBE_SCORE_MAX/2;
     else if(max_frames>=4) return AVPROBE_SCORE_MAX/4;
     else if(max_frames>=1) return 1;
     else                   return 0;



More information about the ffmpeg-cvslog mailing list