Revision 0fc07ad9 libavformat/wv.c

View differences:

libavformat/wv.c
168 168
    st->codec->sample_rate = wc->rate;
169 169
    st->codec->bits_per_coded_sample = wc->bpp;
170 170
    av_set_pts_info(st, 64, 1, wc->rate);
171
    s->start_time = 0;
172
    s->duration = (int64_t)wc->samples * AV_TIME_BASE / st->codec->sample_rate;
171
    st->start_time = 0;
172
    st->duration = wc->samples;
173 173

  
174 174
    if(!url_is_streamed(s->pb)) {
175 175
        int64_t cur = url_ftell(s->pb);

Also available in: Unified diff