Revision 0fc07ad9 libavformat/ape.c

View differences:

libavformat/ape.c
310 310
    st->codec->frame_size      = MAC_SUBFRAME_SIZE;
311 311

  
312 312
    st->nb_frames = ape->totalframes;
313
    s->start_time = 0;
314
    s->duration   = (int64_t) total_blocks * AV_TIME_BASE / ape->samplerate;
313
    st->start_time = 0;
314
    st->duration  = total_blocks / MAC_SUBFRAME_SIZE;
315 315
    av_set_pts_info(st, 64, MAC_SUBFRAME_SIZE, ape->samplerate);
316 316

  
317 317
    st->codec->extradata = av_malloc(APE_EXTRADATA_SIZE);

Also available in: Unified diff