From 20de72a447bffa70e6ef345fea441c4cd229312c Mon Sep 17 00:00:00 2001 From: Alex Converse Date: Thu, 9 Sep 2010 23:15:17 +0000 Subject: [PATCH] adts demuxer: Set the time base to be the LCM of all ADTS sample rates. Originally committed as revision 25091 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/aacdec.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libavformat/aacdec.c b/libavformat/aacdec.c index bcceff3775..bc6c5a8b1f 100644 --- a/libavformat/aacdec.c +++ b/libavformat/aacdec.c @@ -80,6 +80,9 @@ static int adts_aac_read_header(AVFormatContext *s, ff_id3v1_read(s); ff_id3v2_read(s, ID3v2_DEFAULT_MAGIC); + //LCM of all possible ADTS sample rates + av_set_pts_info(st, 64, 1, 28224000); + return 0; }