37 int fsize, frames, sample_rate;
39 uint8_t *buf, *buf0, *buf2, *end;
44 while(buf0 < end && !*buf0)
50 for(; buf < end; buf= buf2+1) {
53 for(frames = 0; buf2 < end; frames++) {
60 max_frames =
FFMAX(max_frames, frames);
69 else if(max_frames>=1)
return 1;
82 const int64_t xing_offtbl[2][2] = {{32, 17}, {17,9}};
91 vbrtag_size = c.frame_size;
96 avio_skip(s->
pb, xing_offtbl[c.lsf == 1][c.nb_channels == 1]);
98 if(v ==
MKBETAG(
'X',
'i',
'n',
'g') || v ==
MKBETAG(
'I',
'n',
'f',
'o')) {
109 if(v ==
MKBETAG(
'V',
'B',
'R',
'I')) {
125 spf = c.lsf ? 576 : 1152;
165 #define MP3_PACKET_SIZE 1024
198 .extensions =
"mp2,mp3,m2a",