Changeset 148 for libmpc/branches/r2d/libmpcdec
- Timestamp:
- 11/21/06 00:31:59 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libmpc/branches/r2d/libmpcdec/mpc_demux.c
r146 r148 241 241 void mpc_demux_decode(mpc_demux * d, mpc_frame_info * i) 242 242 { 243 if (d->d->decoded_samples == (d->seek_table_size << d->seek_pwr) * MPC_FRAME_LENGTH) {244 d->seek_table[d->seek_table_size] = mpc_demux_pos(d);245 d->seek_table_size ++;246 }247 248 243 if (d->si.stream_version >= 8) { 249 244 mpc_bits_reader r; … … 251 246 mpc_block b; 252 247 d->bits_reader.count &= -8; 248 if (d->d->decoded_samples == (d->seek_table_size << d->seek_pwr) * MPC_FRAME_LENGTH) { 249 d->seek_table[d->seek_table_size] = mpc_demux_pos(d); 250 d->seek_table_size ++; 251 } 253 252 mpc_demux_fill(d, 11, 0); // max header block size 254 253 mpc_bits_get_block(&d->bits_reader, &b); … … 270 269 d->block_bits -= ((d->bits_reader.buff - r.buff) << 3) + r.count - d->bits_reader.count; 271 270 } else { 271 if (d->d->decoded_samples == (d->seek_table_size << d->seek_pwr) * MPC_FRAME_LENGTH) { 272 d->seek_table[d->seek_table_size] = mpc_demux_pos(d); 273 d->seek_table_size ++; 274 } 272 275 mpc_bits_reader r; 273 276 mpc_demux_fill(d, MAX_FRAME_SIZE, MPC_BUFFER_FULL | MPC_BUFFER_SWAP);
Note: See TracChangeset
for help on using the changeset viewer.