summaryrefslogtreecommitdiff
path: root/libavformat/oggparseflac.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/oggparseflac.c
parentd947bce1fcd0115d1ff286965321f1434d62b45a (diff)
downloadffmpeg-5603df39df36d9de713732da06fe183b188ec963.tar.gz
Always use av_set_pts_info to set the stream time base.
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);
}