Revision a351110e libavformat/oggparseskeleton.c

View differences:

libavformat/oggparseskeleton.c
60 60
        start_den = AV_RL64(buf+20);
61 61

  
62 62
        if (start_den) {
63
            av_reduce(&start_time, &st->time_base.den, start_num, start_den, INT_MAX);
64
            st->time_base.num = 1;
63
            int64_t base_den;
64
            av_reduce(&start_time, &base_den, start_num, start_den, INT_MAX);
65
            av_set_pts_info(st, 64, 1, base_den);
65 66
            os->lastpts =
66 67
            st->start_time = start_time;
67 68
        }

Also available in: Unified diff