summaryrefslogtreecommitdiff
path: root/libavformat/oggparseflac.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/oggparseflac.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/oggparseflac.c')
-rw-r--r--libavformat/oggparseflac.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavformat/oggparseflac.c b/libavformat/oggparseflac.c
index e5034af3a0..a51a85545c 100644
--- a/libavformat/oggparseflac.c
+++ b/libavformat/oggparseflac.c
@@ -65,8 +65,7 @@ flac_header (AVFormatContext * s, int idx)
memcpy(st->codec->extradata, streaminfo_start, FLAC_STREAMINFO_SIZE);
st->codec->extradata_size = FLAC_STREAMINFO_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 if (mdt == FLAC_METADATA_TYPE_VORBIS_COMMENT) {
ff_vorbis_comment (s, &st->metadata, os->buf + os->pstart + 4, os->psize - 4);
}