adts demuxer: Set the time base to be the LCM of all ADTS sample rates.
authorAlex Converse <alex.converse@gmail.com>
Thu, 9 Sep 2010 23:15:17 +0000 (23:15 +0000)
committerAlex Converse <alex.converse@gmail.com>
Thu, 9 Sep 2010 23:15:17 +0000 (23:15 +0000)
Originally committed as revision 25091 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/aacdec.c

index bcceff3..bc6c5a8 100644 (file)
@@ -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;
 }