Changeset 177 for libmpc/branches/r2d/libmpcdec
- Timestamp:
- 12/20/06 14:41:55 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libmpc/branches/r2d/libmpcdec/mpc_decoder.c
r161 r177 152 152 mpc_int64_t samples_left; 153 153 154 if (d->decoded_samples >= d->samples && d->samples != 0) { 154 samples_left = d->samples - d->decoded_samples + MPC_DECODER_SYNTH_DELAY; 155 156 if (samples_left <= 0 && d->samples != 0) { 155 157 i->samples = 0; 156 158 i->bits = -1; … … 177 179 } 178 180 179 samples_left = d->samples - d->decoded_samples + MPC_DECODER_SYNTH_DELAY;180 181 i->samples = samples_left > MPC_FRAME_LENGTH ? MPC_FRAME_LENGTH : samples_left < 0 ? 0 : (mpc_uint32_t) samples_left; 181 182 i->bits = (mpc_uint32_t) (((r->buff - r_sav.buff) << 3) + r_sav.count - r->count);
Note: See TracChangeset
for help on using the changeset viewer.