Changeset 306 for libmpc/trunk/libmpcdec
- Timestamp:
- 05/03/07 00:05:03 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libmpc/trunk/libmpcdec/mpc_demux.c
r305 r306 380 380 mpc_bits_get_block(&d->bits_reader, &b); 381 381 while( memcmp(b.key, "AP", 2) != 0 ) { // scan all blocks until audio 382 if (b.key[0] < 65 || b.key[0] > 90 || b.key[1] < 65 || b.key[1] > 90 383 || b.size > (mpc_uint64_t) DEMUX_BUFFER_SIZE - 11) 382 if (b.key[0] < 65 || b.key[0] > 90 || b.key[1] < 65 || b.key[1] > 90) 384 383 goto error; 385 384 if (memcmp(b.key, "SE", 2) == 0) { // end block … … 396 395 i->is_key_frame = MPC_TRUE; 397 396 } 398 if (d->buffer + d->bytes_total - d->bits_reader.buff <= MAX_FRAME_SIZE * 2)397 if (d->buffer + d->bytes_total - d->bits_reader.buff <= MAX_FRAME_SIZE) 399 398 mpc_demux_fill(d, (d->block_bits >> 3) + 1, 0); 400 399 r = d->bits_reader;
Note: See TracChangeset
for help on using the changeset viewer.