summaryrefslogtreecommitdiff
path: root/libavformat/oggparsetheora.c
diff options
context:
space:
mode:
authorReimar Döffinger <git@videolan.org>2011-02-05 10:08:29 +0100
committerRonald S. Bultje <rsbultje@gmail.com>2011-02-06 16:08:59 -0500
commita351110eea8f8684642dfe7328e14c3755915091 (patch)
treea4c97d415625bed0821fd0f095770b9e49377e9e /libavformat/oggparsetheora.c
parented19fafd486d6ab0d6e1eba80ceaa482a740c556 (diff)
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/oggparsetheora.c')
-rw-r--r--libavformat/oggparsetheora.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/oggparsetheora.c b/libavformat/oggparsetheora.c
index 2299f5507c..d02781f2fa 100644
--- a/libavformat/oggparsetheora.c
+++ b/libavformat/oggparsetheora.c
@@ -91,7 +91,7 @@ theora_header (AVFormatContext * s, int idx)
st->codec->time_base.num = 1;
st->codec->time_base.den = 25;
}
- st->time_base = st->codec->time_base;
+ av_set_pts_info(st, 64, st->codec->time_base.num, st->codec->time_base.den);
st->sample_aspect_ratio.num = get_bits_long(&gb, 24);
st->sample_aspect_ratio.den = get_bits_long(&gb, 24);