aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2014-03-11 15:52:46 +0200
committerMartin Storsjö <martin@martin.st>2014-03-16 21:04:00 +0200
commit3b1c9eb0ffb680174ffaebb47b773a4628a2be6a (patch)
treea81b87a0a1f8f99682a8dd4541c60522cb603485
parent0412cb67cda05b08dfca6bfc4ff664ea917fa932 (diff)
downloadffmpeg-3b1c9eb0ffb680174ffaebb47b773a4628a2be6a.tar.gz
aacdec: Lower the number of frames required to detect ADTS
For live audio streams, requiring 500 frames for a stream to be detected is a bit overkill. This allows live ADTS streams that don't start nicely at a frame boundary to start up more quickly, e.g. http://mp3.streampower.be/radio1.aac. Signed-off-by: Martin Storsjö <martin@martin.st>
-rw-r--r--libavformat/aacdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/aacdec.c b/libavformat/aacdec.c
index f5d0c6948b..f7e61efe9b 100644
--- a/libavformat/aacdec.c
+++ b/libavformat/aacdec.c
@@ -64,7 +64,7 @@ static int adts_aac_probe(AVProbeData *p)
if (first_frames >= 3)
return AVPROBE_SCORE_EXTENSION + 1;
- else if (max_frames > 500)
+ else if (max_frames > 100)
return AVPROBE_SCORE_EXTENSION;
else if (max_frames >= 3)
return AVPROBE_SCORE_EXTENSION / 2;