Ignore:
Timestamp:
11/17/06 21:04:35 (15 years ago)
Author:
r2d
Message:
  • added simple seeking for sv7 and sv8
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libmpc/branches/r2d/libmpcdec/mpc_decoder.c

    r126 r143  
    7676// }
    7777
     78/**
     79 * set the scf indexes for seeking use
     80 * needed only for sv7 seeking
     81 * @param d
     82 */
     83void 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
    7890void mpc_decoder_setup(mpc_decoder *d)
    7991{
     
    126138        if (d->decoded_samples >= d->samples && d->samples != 0) {
    127139                i->samples = 0;
     140                i->bits = -1;
    128141                return;
    129142        }
    130143
    131144        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        }
    134149
    135150        d->decoded_samples += MPC_FRAME_LENGTH;
Note: See TracChangeset for help on using the changeset viewer.