diff options
author | Reimar Döffinger <git@videolan.org> | 2011-02-05 10:08:29 +0100 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2011-02-06 16:08:59 -0500 |
commit | a351110eea8f8684642dfe7328e14c3755915091 (patch) | |
tree | a4c97d415625bed0821fd0f095770b9e49377e9e /libavformat/oggparsespeex.c | |
parent | ed19fafd486d6ab0d6e1eba80ceaa482a740c556 (diff) | |
download | ffmpeg-a351110eea8f8684642dfe7328e14c3755915091.tar.gz |
Always use av_set_pts_info to set the stream time base.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
Diffstat (limited to 'libavformat/oggparsespeex.c')
-rw-r--r-- | libavformat/oggparsespeex.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavformat/oggparsespeex.c b/libavformat/oggparsespeex.c index 936b37e952..80b2001ddf 100644 --- a/libavformat/oggparsespeex.c +++ b/libavformat/oggparsespeex.c @@ -72,8 +72,7 @@ static int speex_header(AVFormatContext *s, int idx) { + FF_INPUT_BUFFER_PADDING_SIZE); memcpy(st->codec->extradata, p, st->codec->extradata_size); - st->time_base.num = 1; - st->time_base.den = st->codec->sample_rate; + av_set_pts_info(st, 64, 1, st->codec->sample_rate); } else ff_vorbis_comment(s, &st->metadata, p, os->psize); |