Changeset 197 for libmpcdec/trunk
- Timestamp:
- 01/09/07 11:48:15 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libmpcdec/trunk/src/mpc_decoder.c
r160 r197 258 258 } 259 259 260 // Frame decoding. Takes big endian 32 bits words as input 260 261 mpc_uint32_t 261 262 mpc_decoder_decode_frame(mpc_decoder *d, mpc_uint32_t *in_buffer, 262 263 mpc_uint32_t in_len, MPC_SAMPLE_FORMAT *out_buffer) 263 264 { 265 unsigned int i; 264 266 mpc_decoder_reset_bitstream_decode(d); 265 267 if (in_len > sizeof(d->Speicher)) in_len = sizeof(d->Speicher); 266 268 memcpy(d->Speicher, in_buffer, in_len); 269 for (i = 0; i < (in_len + 3) / 4; i++) 270 d->Speicher[i] = mpc_swap32(d->Speicher[i]); 267 271 d->dword = SWAP(d->Speicher[0]); 268 272 switch (d->StreamVersion) {
Note: See TracChangeset
for help on using the changeset viewer.