Changeset 424 for libmpc/trunk/libmpcdec
- Timestamp:
- 02/12/09 22:54:56 (16 years ago)
- Location:
- libmpc/trunk/libmpcdec
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
libmpc/trunk/libmpcdec/mpc_bits_reader.c
r219 r424 1 1 /* 2 Copyright (c) 2007 , The Musepack Development Team2 Copyright (c) 2007-2009, The Musepack Development Team 3 3 All rights reserved. 4 4 … … 170 170 size += mpc_bits_get_size(r, &(p_block->size)); 171 171 172 p_block->size -= size; 172 if (p_block->size >= size) // check if the block size doesn't conflict with the header size 173 p_block->size -= size; 173 174 174 175 return size; -
libmpc/trunk/libmpcdec/mpc_demux.c
r423 r424 1 1 /* 2 Copyright (c) 2005 , The Musepack Development Team2 Copyright (c) 2005-2009, The Musepack Development Team 3 3 All rights reserved. 4 4 … … 119 119 * @return MPC_STATUS_INVALIDSV if the key is invalid, MPC_STATUS_OK else 120 120 */ 121 static inline mpc_status mpc_check_key(char * key)121 static mpc_inline mpc_status mpc_check_key(char * key) 122 122 { 123 123 if (key[0] < 65 || key[0] > 90 || key[1] < 65 || key[1] > 90)
Note: See TracChangeset
for help on using the changeset viewer.