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/oggparseflac.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/oggparseflac.c')
-rw-r--r-- | libavformat/oggparseflac.c | 3 |
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); } |