Changeset 220 for libmpc/branches/r2d/libmpcdec/mpc_demux.c
- Timestamp:
- 02/17/07 18:49:10 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libmpc/branches/r2d/libmpcdec/mpc_demux.c
r219 r220 298 298 mpc_demux_fill(d, 11, 0); // max header block size 299 299 size = mpc_bits_get_block(&d->bits_reader, &b); 300 while( memcmp(b.key, "A D", 2) != 0 ){ // scan all blocks until audio300 while( memcmp(b.key, "AP", 2) != 0 ){ // scan all blocks until audio 301 301 mpc_demux_fill(d, 11 + (mpc_uint32_t) b.size, 0); 302 if (memcmp(b.key, "S I", 2) == 0){302 if (memcmp(b.key, "SH", 2) == 0){ 303 303 int ret = streaminfo_read_header_sv8(&d->si, &d->bits_reader, (mpc_uint32_t) b.size); 304 304 if (ret != MPC_STATUS_OK) return ret; 305 } else if (memcmp(b.key, "EI", 2) == 0) 305 } else if (memcmp(b.key, "RG", 2) == 0) 306 streaminfo_gain(&d->si, &d->bits_reader); 307 else if (memcmp(b.key, "EI", 2) == 0) 306 308 streaminfo_encoder_info(&d->si, &d->bits_reader); 307 else if (memcmp(b.key, "S P", 2) == 0)309 else if (memcmp(b.key, "SO", 2) == 0) 308 310 mpc_demux_SP(d, size, (mpc_uint32_t) b.size); 309 311 else if (memcmp(b.key, "ST", 2) == 0) … … 366 368 mpc_demux_fill(d, 11, 0); // max header block size 367 369 mpc_bits_get_block(&d->bits_reader, &b); 368 while( memcmp(b.key, "A D", 2) != 0 ) { // scan all blocks until audio370 while( memcmp(b.key, "AP", 2) != 0 ) { // scan all blocks until audio 369 371 if (memcmp(b.key, "SE", 2) == 0) { // end block 370 372 i->bits = -1; … … 436 438 size = mpc_bits_get_block(&d->bits_reader, &b); 437 439 while(i < fwd) { 438 if (memcmp(b.key, "A D", 2) == 0) {440 if (memcmp(b.key, "AP", 2) == 0) { 439 441 if (d->d->decoded_samples == (d->seek_table_size << d->seek_pwr) * MPC_FRAME_LENGTH) { 440 442 d->seek_table[d->seek_table_size] = (mpc_uint32_t) mpc_demux_pos(d) - 8 * size;
Note: See TracChangeset
for help on using the changeset viewer.