aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-11-30 18:07:20 +0100
committerMichael Niedermayer <michaelni@gmx.at>2011-11-30 18:07:20 +0100
commitb51eaf3b8ce85419038d1f8be9146a45febcddb4 (patch)
tree6204cf6a064e189f97b3a3ec202c81e98462a7cb
parentdd32a305bdee54eff9b3fd1f5592f100b8a8fb83 (diff)
downloadffmpeg-b51eaf3b8ce85419038d1f8be9146a45febcddb4.tar.gz
mp3probe: Detect mp3 stronger with just 200 frames, this should speed up detection
on mp3 streams. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavformat/mp3dec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mp3dec.c b/libavformat/mp3dec.c
index 3101bae99d..56311a5953 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;