diff options
author | Måns Rullgård <mans@mansr.com> | 2006-05-12 00:50:43 +0000 |
---|---|---|
committer | Måns Rullgård <mans@mansr.com> | 2006-05-12 00:50:43 +0000 |
commit | 3644cb8ff9e8603859e74ebf2d0ed6eff5bef551 (patch) | |
tree | 0097e3306d2b805c44772cb8a982a7ada2dfe882 /libavformat/oggparsevorbis.c | |
parent | b8d10977f435ef7de6a90c8545a419192b8e83c6 (diff) | |
download | ffmpeg-3644cb8ff9e8603859e74ebf2d0ed6eff5bef551.tar.gz |
set stream time_base properly
Originally committed as revision 5367 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/oggparsevorbis.c')
-rw-r--r-- | libavformat/oggparsevorbis.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/oggparsevorbis.c b/libavformat/oggparsevorbis.c index 202601fa9e..9eddeff09c 100644 --- a/libavformat/oggparsevorbis.c +++ b/libavformat/oggparsevorbis.c @@ -186,6 +186,8 @@ vorbis_header (AVFormatContext * s, int idx) st->codec->codec_type = CODEC_TYPE_AUDIO; st->codec->codec_id = CODEC_ID_VORBIS; + st->time_base.num = 1; + st->time_base.den = st->codec->sample_rate; } else if (os->buf[os->pstart] == 3) { vorbis_comment (s, os->buf + os->pstart + 7, os->psize - 8); } else { |