Lines Matching defs:duration
131 static void read_xing_toc(AVFormatContext *s, int64_t filesize, int64_t duration)
136 int fill_index = (mp3->usetoc || fast_seek) && duration > 0;
149 av_rescale(i, duration, XING_TOC_COUNT),
196 "invalid concatenated file detected - using bitrate for duration\n");
199 "filesize and duration do not match (growing file?)\n");
316 * Try to find Xing/Info/VBRI tags and compute duration from info therein
353 st->duration = av_rescale_q(mp3->frames, (AVRational){spf, c.sample_rate},
578 } else if (fast_seek && st->duration > 0 && filesize > 0) {
583 timestamp = av_clip64(timestamp, 0, st->duration);
585 ie->pos = av_rescale(timestamp, filesize, st->duration) + si->data_offset;
595 int frame_duration = av_rescale(st->duration, 1, mp3->frames);