Mercurial > libavformat.hg
diff oggparseflac.c @ 1077:91677ac6fb19 libavformat
set stream time_base properly
author | mru |
---|---|
date | Fri, 12 May 2006 00:50:43 +0000 |
parents | edbe5c3717f9 |
children | 0899bfe4105c |
line wrap: on
line diff
--- a/oggparseflac.c Thu May 11 23:07:22 2006 +0000 +++ b/oggparseflac.c Fri May 12 00:50:43 2006 +0000 @@ -63,6 +63,9 @@ 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); }