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){
138 size2 = (tmp >> (12 - curbits)) & 0xFFFFF;
140 size2 = (tmp << (curbits - 12) |
avio_rl32(s->
pb) >> (44 - curbits)) & 0xFFFFF;
145 size = ((size2 + curbits + 31) & ~31) >> 3;
149 c->
frames[cur].skip = curbits - 20;
153 c->
curbits = (curbits + size2) & 0x1F;
158 pkt->
data[0] = curbits;
170 return ret < 0 ? ret :
AVERROR(EIO);
207 if(timestamp < 0 || timestamp >= c->
fcount)