From 9c5a9e6b48f345563655d59c642bcf4d6cfe402b Mon Sep 17 00:00:00 2001 From: Baptiste Coudurier Date: Sun, 22 Nov 2009 21:04:18 +0000 Subject: [PATCH] set mp3 timebase to the lcm of all mp3 sample rates to fix frame duration Originally committed as revision 20579 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/mp3.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libavformat/mp3.c b/libavformat/mp3.c index 8eac3c6ca..7d3458c75 100644 --- a/libavformat/mp3.c +++ b/libavformat/mp3.c @@ -143,6 +143,9 @@ static int mp3_read_header(AVFormatContext *s, 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); -- 2.11.0