summaryrefslogtreecommitdiff
path: root/libavformat/oggparsespeex.c
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2011-01-31 20:08:56 +0100
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2011-02-05 09:55:53 +0100
commit5603df39df36d9de713732da06fe183b188ec963 (patch)
treea3db37bac78255a929e1bab523e59cd0c6c7c7fd /libavformat/oggparsespeex.c
parentd947bce1fcd0115d1ff286965321f1434d62b45a (diff)
Always use av_set_pts_info to set the stream time base.
Diffstat (limited to 'libavformat/oggparsespeex.c')
-rw-r--r--libavformat/oggparsespeex.c3
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);