32 #define XING_FLAG_FRAMES 0x01
33 #define XING_FLAG_SIZE 0x02
34 #define XING_FLAG_TOC 0x04
36 #define XING_TOC_COUNT 100
49 int max_frames, first_frames = 0;
57 while(buf0 < end && !*buf0)
63 for(; buf <
end; buf= buf2+1) {
66 for(frames = 0; buf2 <
end; frames++) {
73 max_frames =
FFMAX(max_frames, frames);
84 else if(max_frames>=1)
return 1;
120 const int64_t
xing_offtbl[2][2] = {{32, 17}, {17,9}};
130 vbrtag_size = c.frame_size;
134 spf = c.lsf ? 576 : 1152;
137 avio_skip(s->
pb, xing_offtbl[c.lsf == 1][c.nb_channels == 1]);
139 is_cbr = v ==
MKBETAG(
'I',
'n',
'f',
'o');
140 if (v ==
MKBETAG(
'X',
'i',
'n',
'g') || is_cbr) {
153 if(v ==
MKBETAG(
'L',
'A',
'M',
'E') || v ==
MKBETAG(
'L',
'a',
'v',
'f')) {
157 mp3-> end_pad = v&4095;
166 if(v ==
MKBETAG(
'V',
'B',
'R',
'I')) {
185 if (size && frames && !is_cbr)
225 #define MP3_PACKET_SIZE 1024
270 return sd.frame_size;
297 for(i=0; i<4096; i++) {
298 int64_t pos = ie->
pos + i;
328 .extensions =
"mp2,mp3,m2a",