Always use av_set_pts_info to set the stream time base.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
This commit is contained in:
Reimar Döffinger
2011-02-05 10:08:29 +01:00
committed by Ronald S. Bultje
parent ed19fafd48
commit a351110eea
8 changed files with 12 additions and 16 deletions

View File

@ -252,8 +252,7 @@ vorbis_header (AVFormatContext * s, int idx)
if (srate > 0) {
st->codec->sample_rate = srate;
st->time_base.num = 1;
st->time_base.den = srate;
av_set_pts_info(st, 64, 1, srate);
}
} else if (os->buf[os->pstart] == 3) {
if (os->psize > 8 &&