Changeset 358


Ignore:
Timestamp:
10/02/07 11:42:54 (17 years ago)
Author:
r2d
Message:

SV7 seeking bug correction when header not aligned on 4 bytes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libmpc/trunk/libmpcdec/mpc_demux.c

    r355 r358  
    124124        next_pos = fpos >> 3;
    125125        if (d->si.stream_version == 7)
    126                 next_pos &= (-1 << 2);
     126                next_pos = ((next_pos - d->si.header_position) & (-1 << 2)) + d->si.header_position;
    127127        bit_offset = (int) (fpos - (next_pos << 3));
    128128
     
    340340                p_tmp->r = p_reader;
    341341                mpc_demux_clear_buff(p_tmp);
    342                 p_tmp->seek_table = 0;
    343342                if (mpc_demux_header(p_tmp) == MPC_STATUS_OK &&
    344343                                  mpc_demux_seek_init(p_tmp) == MPC_STATUS_OK) {
Note: See TracChangeset for help on using the changeset viewer.