diff mp3.c @ 5380:7a06194c23af libavformat

set mp3 timebase to the lcm of all mp3 sample rates to fix frame duration
author bcoudurier
date Sun, 22 Nov 2009 21:04:18 +0000
parents 86c32a27f69a
children 27fd77f20a89
line wrap: on
line diff
--- a/mp3.c	Sun Nov 22 18:13:22 2009 +0000
+++ b/mp3.c	Sun Nov 22 21:04:18 2009 +0000
@@ -143,6 +143,9 @@
     st->need_parsing = AVSTREAM_PARSE_FULL;
     st->start_time = 0;
 
+    // lcm of all mp3 sample rates
+    av_set_pts_info(st, 64, 1, 14112000);
+
     ff_id3v2_read(s);
     if (!av_metadata_get(s->metadata, "", NULL, AV_METADATA_IGNORE_SUFFIX))
         ff_id3v1_read(s);