Lines Matching defs:duration
414 int duration, flags = 0;
420 * here we parse the duration of each packet in the first page and compare
421 * the total duration to the page granule to find the encoder delay and
429 duration = 0;
439 duration += d;
445 duration = os->granule;
451 duration += d;
457 os->lastdts = os->granule - duration;
459 if (!os->granule && duration) //hack to deal with broken files (Ticket3710)
464 if (s->streams[idx]->duration != AV_NOPTS_VALUE)
465 s->streams[idx]->duration -= s->streams[idx]->start_time;
471 /* parse packet duration */
473 duration = av_vorbis_parse_frame_flags(priv->vp, os->buf + os->pstart, 1, &flags);
474 if (duration < 0) {
481 os->pduration = duration;
487 * to the page granule to find the duration of the final packet */