Changeset 206 for libmpc/branches/r2d/libmpcdec/mpc_demux.c
- Timestamp:
- 02/09/07 18:57:23 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libmpc/branches/r2d/libmpcdec/mpc_demux.c
r205 r206 66 66 d->bits_reader.count = 8; 67 67 d->block_bits = 0; 68 d-> end = MPC_FALSE;68 d->block_frames = 0; 69 69 } 70 70 … … 361 361 mpc_bits_reader r; 362 362 i->is_key_frame = MPC_FALSE; 363 if (d->block_bits < 8 && d->end == MPC_FALSE) { 363 364 if (d->block_frames == 0) { 364 365 mpc_block b = {{0,0},0}; 365 366 d->bits_reader.count &= -8; … … 372 373 while( memcmp(b.key, "AD", 2) != 0 ) { // scan all blocks until audio 373 374 if (memcmp(b.key, "SE", 2) == 0) { // end block 374 d->end = MPC_TRUE;375 break;375 i->bits = -1; 376 return; 376 377 } 377 378 mpc_demux_fill(d, 11 + (mpc_uint32_t) b.size, 0); … … 380 381 } 381 382 d->block_bits = (mpc_uint32_t) b.size * 8; 383 d->block_frames = 1 << d->si.block_pwr; 382 384 i->is_key_frame = MPC_TRUE; 383 385 } … … 387 389 mpc_decoder_decode_frame(d->d, &d->bits_reader, i); 388 390 d->block_bits -= ((d->bits_reader.buff - r.buff) << 3) + r.count - d->bits_reader.count; 391 d->block_frames--; 392 if (d->block_bits < 0) i->bits = -1; 389 393 } else { 390 394 mpc_bits_reader r;
Note: See TracChangeset
for help on using the changeset viewer.