[FFmpeg-cvslog] aacdec: Lower the number of frames required to detect ADTS

Martin Storsjö git at videolan.org
Sun Mar 16 22:48:53 CET 2014


ffmpeg | branch: master | Martin Storsjö <martin at martin.st> | Tue Mar 11 15:52:46 2014 +0200| [3b1c9eb0ffb680174ffaebb47b773a4628a2be6a] | committer: Martin Storsjö

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 at martin.st>

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

 libavformat/aacdec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/aacdec.c b/libavformat/aacdec.c
index f5d0c69..f7e61ef 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;



More information about the ffmpeg-cvslog mailing list