Revision 0fc07ad9 libavformat/mpc.c

View differences:

libavformat/mpc.c
115 115
    st->codec->sample_rate = mpc_rate[st->codec->extradata[2] & 3];
116 116
    av_set_pts_info(st, 32, MPC_FRAMESIZE, st->codec->sample_rate);
117 117
    /* scan for seekpoints */
118
    s->start_time = 0;
119
    s->duration = (int64_t)c->fcount * MPC_FRAMESIZE * AV_TIME_BASE / st->codec->sample_rate;
118
    st->start_time = 0;
119
    st->duration = c->fcount;
120 120

  
121 121
    /* try to read APE tags */
122 122
    if (!url_is_streamed(s->pb)) {

Also available in: Unified diff