changeset 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 13cd610e6ed4
children b54fa3ff2f61
files mp3.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
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);