Revision a351110e libavformat/oggparsedirac.c

View differences:

libavformat/oggparsedirac.c
42 42
    st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
43 43
    st->codec->codec_id = CODEC_ID_DIRAC;
44 44
    // dirac in ogg always stores timestamps as though the video were interlaced
45
    st->time_base = (AVRational){st->codec->time_base.num, 2*st->codec->time_base.den};
45
    av_set_pts_info(st, 64, st->codec->time_base.num, 2*st->codec->time_base.den);
46 46
    return 1;
47 47
}
48 48

  
......
79 79

  
80 80
    st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
81 81
    st->codec->codec_id = CODEC_ID_DIRAC;
82
    st->time_base.den = AV_RB32(buf+8);
83
    st->time_base.num = AV_RB32(buf+12);
82
    av_set_pts_info(st, 64, AV_RB32(buf+12), AV_RB32(buf+8));
84 83
    return 1;
85 84
}
86 85

  

Also available in: Unified diff