Lines Matching refs:frames
52 unsigned frames; /* Total number of frames in file */
70 int frames, ret;
86 for (framesizes = frames = 0; buf2 < end; frames++) {
105 frames++;
110 max_frames = FFMAX(max_frames, frames);
113 first_frames= frames;
186 mp3->frames = avio_rb32(s->pb);
194 mp3->frames = 0;
203 read_xing_toc(s, mp3->header_filesize, av_rescale_q(mp3->frames,
260 if (mp3->frames) {
261 sti->first_discard_sample = -mp3->end_pad + 528 + 1 + mp3->frames * (int64_t)spf;
262 sti->last_discard_sample = mp3->frames * (int64_t)spf;
310 mp3->frames = avio_rb32(s->pb);
340 mp3->frames = 0;
346 if (!mp3->frames && !mp3->header_filesize)
352 if (mp3->frames)
353 st->duration = av_rescale_q(mp3->frames, (AVRational){spf, c.sample_rate},
355 if (mp3->header_filesize && mp3->frames && !mp3->is_cbr)
356 st->codecpar->bit_rate = av_rescale(mp3->header_filesize, 8 * c.sample_rate, mp3->frames * (int64_t)spf);
594 if (mp3->is_cbr && ie == &ie1 && mp3->frames) {
595 int frame_duration = av_rescale(st->duration, 1, mp3->frames);
596 ie1.timestamp = frame_duration * av_rescale(best_pos - si->data_offset, mp3->frames, mp3->header_filesize);