Ignore:
Timestamp:
02/09/07 18:57:23 (18 years ago)
Author:
r2d
Message:
  • corrected a bug where very short frames ( < 1 byte, generally silence) were skiped at the end of a block.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libmpc/branches/r2d/mpc2sv8/mpc2sv8.c

    r205 r206  
    5757                mpc_int32_t * q_d = d->Q[i].L, * q_e = e->Q[i].L, Res = d->Res_L[i];
    5858
    59                 if (Res != 0)
     59                if (Res > 0)
    6060                        for( j = 0; j < 36; j++)
    6161                                q_e[j] = q_d[j] + offset[Res];
     
    6363                q_d = d->Q[i].R, q_e = e->Q[i].R, Res = d->Res_R[i];
    6464
    65                 if (Res != 0)
     65                if (Res > 0)
    6666                        for( j = 0; j < 36; j++)
    6767                                q_e[j] = q_d[j] + offset[Res];
     
    137137
    138138                demux->d->samples_to_skip = MPC_FRAME_LENGTH + MPC_DECODER_SYNTH_DELAY;
    139                 frame.buffer = 0;
    140139                mpc_demux_decode(demux, &frame);
    141140
Note: See TracChangeset for help on using the changeset viewer.