30 #define MKMPCTAG(a, b) (a | (b << 8))
32 #define TAG_MPCK MKTAG('M','P','C','K')
48 static const int mpc8_rate[8] = { 44100, 48000, 37800, 32000, -1, -1, -1, -1 };
86 while (bs < bs_end + 3) {
87 int header_found = (bs[0] ==
'S' && bs[1] ==
'H');
88 if (bs[0] <
'A' || bs[0] >
'Z' || bs[1] <
'A' || bs[1] >
'Z')
94 if (bs + size - 2 >= bs_end)
137 int64_t
size, pos, ppos[2];
139 int i, t, seekd,
ret;
153 if (size > INT_MAX/10 || size<=0) {
169 if(size > UINT_MAX/4 || size > c->
samples/1152){
174 for(i = 0; i < 2; i++){
179 for(; i <
size; i++){
184 pos = (t >> 1) + ppos[0]*2 - ppos[1];
307 if(index < 0)
return -1;