Changeset 284


Ignore:
Timestamp:
04/20/07 22:53:29 (18 years ago)
Author:
r2d
Message:

corrected seeking to beginning of the file bug (sv7 only)

Location:
libmpc/branches/r2d/libmpcdec
Files:
2 edited

Legend:

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

    r262 r284  
    9393 * @param d
    9494 */
    95 void mpc_decoder_reset_scf(mpc_decoder * d)
    96 {
    97         memset(d->SCF_Index_L, 1, sizeof d->SCF_Index_L );
    98         memset(d->SCF_Index_R, 1, sizeof d->SCF_Index_R );
     95void mpc_decoder_reset_scf(mpc_decoder * d, int value)
     96{
     97        memset(d->SCF_Index_L, value, sizeof d->SCF_Index_L );
     98        memset(d->SCF_Index_R, value, sizeof d->SCF_Index_R );
    9999}
    100100
  • libmpc/branches/r2d/libmpcdec/mpc_demux.c

    r281 r284  
    475475                d->bits_reader.buff -= size;
    476476        } else {
    477                 mpc_decoder_reset_scf(d->d);
     477                mpc_decoder_reset_scf(d->d, fpos != d->seek_table[0]);
    478478                mpc_demux_seek(d, fpos, 4);
    479479                for( ; i < fwd; i++){
Note: See TracChangeset for help on using the changeset viewer.