summaryrefslogtreecommitdiff
path: root/libavformat/oggparseskeleton.c
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2011-01-31 20:08:56 +0100
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2011-02-05 09:55:53 +0100
commit5603df39df36d9de713732da06fe183b188ec963 (patch)
treea3db37bac78255a929e1bab523e59cd0c6c7c7fd /libavformat/oggparseskeleton.c
parentd947bce1fcd0115d1ff286965321f1434d62b45a (diff)
Always use av_set_pts_info to set the stream time base.
Diffstat (limited to 'libavformat/oggparseskeleton.c')
-rw-r--r--libavformat/oggparseskeleton.c5
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;
}