[FFmpeg-cvslog] r20579 - trunk/libavformat/mp3.c

bcoudurier subversion
Sun Nov 22 22:04:19 CET 2009


Author: bcoudurier
Date: Sun Nov 22 22:04:18 2009
New Revision: 20579

Log:
set mp3 timebase to the lcm of all mp3 sample rates to fix frame duration

Modified:
   trunk/libavformat/mp3.c

Modified: trunk/libavformat/mp3.c
==============================================================================
--- trunk/libavformat/mp3.c	Sun Nov 22 19:13:22 2009	(r20578)
+++ trunk/libavformat/mp3.c	Sun Nov 22 22:04:18 2009	(r20579)
@@ -143,6 +143,9 @@ static int mp3_read_header(AVFormatConte
     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);



More information about the ffmpeg-cvslog mailing list