Revision a351110e libavformat/oggparseogm.c

View differences:

libavformat/oggparseogm.c
83 83
            st->codec->height = bytestream_get_le32(&p);
84 84
            st->codec->time_base.den = spu * 10000000;
85 85
            st->codec->time_base.num = time_unit;
86
            st->time_base = st->codec->time_base;
86
            av_set_pts_info(st, 64, st->codec->time_base.num, st->codec->time_base.den);
87 87
        } else {
88 88
            st->codec->channels = bytestream_get_le16(&p);
89 89
            p += 2;                 /* block_align */
90 90
            st->codec->bit_rate = bytestream_get_le32(&p) * 8;
91 91
            st->codec->sample_rate = spu * 10000000 / time_unit;
92
            st->time_base.num = 1;
93
            st->time_base.den = st->codec->sample_rate;
92
            av_set_pts_info(st, 64, 1, st->codec->sample_rate);
94 93
        }
95 94
    } else if (*p == 3) {
96 95
        if (os->psize > 8)

Also available in: Unified diff