summaryrefslogtreecommitdiff
path: root/libavformat/oggparseflac.c
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2006-05-12 00:50:43 +0000
committerMåns Rullgård <mans@mansr.com>2006-05-12 00:50:43 +0000
commit3644cb8ff9e8603859e74ebf2d0ed6eff5bef551 (patch)
tree0097e3306d2b805c44772cb8a982a7ada2dfe882 /libavformat/oggparseflac.c
parentb8d10977f435ef7de6a90c8545a419192b8e83c6 (diff)
set stream time_base properly
Originally committed as revision 5367 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/oggparseflac.c')
-rw-r--r--libavformat/oggparseflac.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/oggparseflac.c b/libavformat/oggparseflac.c
index d1d53b0256..a63e9d2e60 100644
--- a/libavformat/oggparseflac.c
+++ b/libavformat/oggparseflac.c
@@ -63,6 +63,9 @@ flac_header (AVFormatContext * s, int idx)
memcpy (st->codec->extradata, os->buf + os->pstart + 5 + 4 + 4 + 4,
FLAC_STREAMINFO_SIZE);
st->codec->extradata_size = FLAC_STREAMINFO_SIZE;
+
+ st->time_base.num = 1;
+ st->time_base.den = st->codec->sample_rate;
} else if (mdt == 4) {
vorbis_comment (s, os->buf + os->pstart + 4, os->psize - 4);
}