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
@ -60,8 +60,9 @@ static int skeleton_header(AVFormatContext *s, int idx)
|
||||
start_den = AV_RL64(buf+20);
|
||||
|
||||
if (start_den) {
|
||||
av_reduce(&start_time, &st->time_base.den, start_num, start_den, INT_MAX);
|
||||
st->time_base.num = 1;
|
||||
int64_t base_den;
|
||||
av_reduce(&start_time, &base_den, start_num, start_den, INT_MAX);
|
||||
av_set_pts_info(st, 64, 1, base_den);
|
||||
os->lastpts =
|
||||
st->start_time = start_time;
|
||||
}
|
||||
|
Reference in New Issue
Block a user