mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-06 15:49:50 +08:00
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:

committed by
Ronald S. Bultje

parent
ed19fafd48
commit
a351110eea
@ -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 &&
|
||||
|
Reference in New Issue
Block a user