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)
97 if (size < 11 || size > 28)
137 int64_t
size, pos, ppos[2];
153 if (size > INT_MAX/10 || size<=0) {
162 if(size > UINT_MAX/4 || size > c->
samples/1152){
167 for(i = 0; i < 2; i++){
172 for(; i <
size; i++){
177 pos = (t >> 1) + ppos[0]*2 - ppos[1];
301 if(index < 0)
return -1;