[FFmpeg-cvslog] ac3probe: Change threshold from 500 to 200 to keep in sync with mp3.

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:08:23 2011 +0100| [8d5078c10b0e2f813f00bd799ed7aab968707689] | committer: Michael Niedermayer

ac3probe: Change threshold from 500 to 200 to keep in sync with mp3.

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

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

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

diff --git a/libavformat/ac3dec.c b/libavformat/ac3dec.c
index 282a72e..f1421dc 100644
--- a/libavformat/ac3dec.c
+++ b/libavformat/ac3dec.c
@@ -60,7 +60,7 @@ static int ac3_eac3_probe(AVProbeData *p, enum CodecID expected_codec_id)
     // keep this in sync with mp3 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