aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/mp3.c
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2009-11-22 21:04:18 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2009-11-22 21:04:18 +0000
commit9c5a9e6b48f345563655d59c642bcf4d6cfe402b (patch)
treea80ee0a35a6eb9293f05bbbc9c8c828c0fc5c459 /libavformat/mp3.c
parentc3988a59ce13161aa6a500ed0c13130536ccec9d (diff)
downloadffmpeg-9c5a9e6b48f345563655d59c642bcf4d6cfe402b.tar.gz
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
Diffstat (limited to 'libavformat/mp3.c')
-rw-r--r--libavformat/mp3.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/mp3.c b/libavformat/mp3.c
index 8eac3c6ca9..7d3458c751 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);