From a351110eea8f8684642dfe7328e14c3755915091 Mon Sep 17 00:00:00 2001 From: Reimar Döffinger Date: Sat, 5 Feb 2011 10:08:29 +0100 Subject: Always use av_set_pts_info to set the stream time base. Signed-off-by: Ronald S. Bultje --- libavformat/oggparseogm.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'libavformat/oggparseogm.c') diff --git a/libavformat/oggparseogm.c b/libavformat/oggparseogm.c index e1d046f28f..dda5be601a 100644 --- a/libavformat/oggparseogm.c +++ b/libavformat/oggparseogm.c @@ -83,14 +83,13 @@ ogm_header(AVFormatContext *s, int idx) st->codec->height = bytestream_get_le32(&p); st->codec->time_base.den = spu * 10000000; st->codec->time_base.num = time_unit; - st->time_base = st->codec->time_base; + av_set_pts_info(st, 64, st->codec->time_base.num, st->codec->time_base.den); } else { st->codec->channels = bytestream_get_le16(&p); p += 2; /* block_align */ st->codec->bit_rate = bytestream_get_le32(&p) * 8; st->codec->sample_rate = spu * 10000000 / time_unit; - 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 if (*p == 3) { if (os->psize > 8) -- cgit v1.2.3