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

@ -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;
}