Changeset 305
- Timestamp:
- 05/02/07 23:20:42 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libmpc/trunk/libmpcdec/mpc_demux.c
r302 r305 367 367 { 368 368 mpc_bits_reader r; 369 int pos = 0;370 369 if (d->si.stream_version >= 8) { 371 370 i->is_key_frame = MPC_FALSE; … … 380 379 mpc_demux_fill(d, 11, 0); // max header block size 381 380 mpc_bits_get_block(&d->bits_reader, &b); 382 pos = mpc_demux_pos(d) >> 3;383 381 while( memcmp(b.key, "AP", 2) != 0 ) { // scan all blocks until audio 384 382 if (b.key[0] < 65 || b.key[0] > 90 || b.key[1] < 65 || b.key[1] > 90 … … 425 423 error: 426 424 i->bits = -1; // we pretend it's end of file 427 // return MPC_STATUS_INVALIDSV; 428 return pos; 425 return MPC_STATUS_INVALIDSV; 429 426 } 430 427
Note: See TracChangeset
for help on using the changeset viewer.