Changeset 143 for libmpc/branches/r2d/libmpcdec/mpc_decoder.c
- Timestamp:
- 11/17/06 21:04:35 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libmpc/branches/r2d/libmpcdec/mpc_decoder.c
r126 r143 76 76 // } 77 77 78 /** 79 * set the scf indexes for seeking use 80 * needed only for sv7 seeking 81 * @param d 82 */ 83 void mpc_decoder_reset_scf(mpc_decoder * d) 84 { 85 memset(d->SCF_Index_L, 1, sizeof d->SCF_Index_L ); 86 memset(d->SCF_Index_R, 1, sizeof d->SCF_Index_R ); 87 } 88 89 78 90 void mpc_decoder_setup(mpc_decoder *d) 79 91 { … … 126 138 if (d->decoded_samples >= d->samples && d->samples != 0) { 127 139 i->samples = 0; 140 i->bits = -1; 128 141 return; 129 142 } 130 143 131 144 mpc_decoder_read_bitstream_sv7(d, r); 132 mpc_decoder_requantisierung(d); 133 mpc_decoder_synthese_filter_float(d, i->buffer); 145 if (d->samples_to_skip < MPC_FRAME_LENGTH + MPC_DECODER_SYNTH_DELAY) { 146 mpc_decoder_requantisierung(d); 147 mpc_decoder_synthese_filter_float(d, i->buffer); 148 } 134 149 135 150 d->decoded_samples += MPC_FRAME_LENGTH;
Note: See TracChangeset
for help on using the changeset viewer.