• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/minidlna/ffmpeg-2.3.4/libavformat/

Lines Matching defs:mp3

55 /* mp3 read */
104 MP3DecContext *mp3 = s->priv_data;
105 int fill_index = mp3->usetoc && duration > 0;
122 mp3->xing_toc = 1;
139 MP3DecContext *mp3 = s->priv_data;
145 mp3->is_cbr = v == MKBETAG('I', 'n', 'f', 'o');
146 if (v != MKBETAG('X', 'i', 'n', 'g') && !mp3->is_cbr)
151 mp3->frames = avio_rb32(s->pb);
153 mp3->header_filesize = avio_rb32(s->pb);
155 read_xing_toc(s, mp3->header_filesize, av_rescale_q(mp3->frames,
207 mp3->start_pad = v>>12;
208 mp3-> end_pad = v&4095;
209 st->skip_samples = mp3->start_pad + 528 + 1;
214 av_log(s, AV_LOG_DEBUG, "pad %d %d\n", mp3->start_pad, mp3-> end_pad);
245 MP3DecContext *mp3 = s->priv_data;
255 mp3->header_filesize = avio_rb32(s->pb);
256 mp3->frames = avio_rb32(s->pb);
269 MP3DecContext *mp3 = s->priv_data;
284 mp3->frames = 0;
285 mp3->header_filesize = 0;
290 if (!mp3->frames && !mp3->header_filesize)
296 if (mp3->frames)
297 st->duration = av_rescale_q(mp3->frames, (AVRational){spf, c.sample_rate},
299 if (mp3->header_filesize && mp3->frames && !mp3->is_cbr)
300 st->codec->bit_rate = av_rescale(mp3->header_filesize, 8 * c.sample_rate, mp3->frames * (int64_t)spf);
307 MP3DecContext *mp3 = s->priv_data;
321 // lcm of all mp3 sample rates
331 mp3->filesize = avio_size(s->pb);
348 MP3DecContext *mp3 = s->priv_data;
354 if(mp3->filesize > ID3v1_TAG_SIZE && pos < mp3->filesize)
355 size= FFMIN(size, mp3->filesize - pos);
395 MP3DecContext *mp3 = s->priv_data;
402 if (mp3->is_cbr && st->duration > 0 && mp3->header_filesize > s->data_offset) {
406 filesize = mp3->header_filesize;
408 duration = av_rescale(st->duration, filesize, mp3->header_filesize - s->data_offset);
413 } else if (mp3->xing_toc) {
419 st->skip_samples = timestamp <= 0 ? mp3->start_pad + 528 + 1 : 0;
449 st->skip_samples = ie->timestamp <= 0 ? mp3->start_pad + 528 + 1 : 0;
459 .class_name = "mp3",
467 .name = "mp3",
475 .extensions = "mp2,mp3,m2a,mpa", /* XXX: use probe */