diff options
author | Reimar Döffinger <git@videolan.org> | 2011-02-05 10:08:29 +0100 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2011-02-06 16:08:59 -0500 |
commit | a351110eea8f8684642dfe7328e14c3755915091 (patch) | |
tree | a4c97d415625bed0821fd0f095770b9e49377e9e /libavformat/oggparseskeleton.c | |
parent | ed19fafd486d6ab0d6e1eba80ceaa482a740c556 (diff) | |
download | ffmpeg-a351110eea8f8684642dfe7328e14c3755915091.tar.gz |
Always use av_set_pts_info to set the stream time base.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
Diffstat (limited to 'libavformat/oggparseskeleton.c')
-rw-r--r-- | libavformat/oggparseskeleton.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libavformat/oggparseskeleton.c b/libavformat/oggparseskeleton.c index ad0dded0d7..f0e17f9cf5 100644 --- a/libavformat/oggparseskeleton.c +++ b/libavformat/oggparseskeleton.c @@ -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; } |