30 #define MPC_FRAMESIZE 1152
31 #define DELAY_FRAMES 32
33 static const int mpc_rate[4] = { 44100, 48000, 37800, 32000 };
51 if (d[0] ==
'M' && d[1] ==
'P' && d[2] ==
'+' && (d[3] == 0x17 || d[3] == 0x7))
66 if(c->
ver != 0x07 && c->
ver != 0x17){
139 size2 = (tmp >> (12 - curbits)) & 0xFFFFF;
141 size2 = (tmp << (curbits - 12) |
avio_rl32(s->
pb) >> (44 - curbits)) & 0xFFFFF;
146 size = ((size2 + curbits + 31) & ~31) >> 3;
150 c->
frames[cur].skip = curbits - 20;
154 c->
curbits = (curbits + size2) & 0x1F;
159 pkt->
data[0] = curbits;
171 return ret < 0 ? ret :
AVERROR(EIO);
208 if(timestamp < 0 || timestamp >= c->
fcount)