aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorAlex Converse <alex.converse@gmail.com>2010-09-09 23:15:17 +0000
committerAlex Converse <alex.converse@gmail.com>2010-09-09 23:15:17 +0000
commit20de72a447bffa70e6ef345fea441c4cd229312c (patch)
treeb845bba6baffbc81ed269b6cb3cc5786c1e50c81 /libavformat
parent2dfa7c72cede04f95c4989099bcebfeeed68455b (diff)
downloadffmpeg-20de72a447bffa70e6ef345fea441c4cd229312c.tar.gz
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
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/aacdec.c3
1 files changed, 3 insertions, 0 deletions
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;
}