Changeset 424 for libmpc/trunk/libmpcdec


Ignore:
Timestamp:
02/12/09 22:54:56 (16 years ago)
Author:
r2d
Message:

check block size & changed inline for mpc_inline, MSVC seems to accept static inline but not static inline ...

Location:
libmpc/trunk/libmpcdec
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libmpc/trunk/libmpcdec/mpc_bits_reader.c

    r219 r424  
    11/*
    2   Copyright (c) 2007, The Musepack Development Team
     2  Copyright (c) 2007-2009, The Musepack Development Team
    33  All rights reserved.
    44
     
    170170        size += mpc_bits_get_size(r, &(p_block->size));
    171171
    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;
    173174
    174175        return size;
  • libmpc/trunk/libmpcdec/mpc_demux.c

    r423 r424  
    11/*
    2   Copyright (c) 2005, The Musepack Development Team
     2  Copyright (c) 2005-2009, The Musepack Development Team
    33  All rights reserved.
    44
     
    119119 * @return MPC_STATUS_INVALIDSV if the key is invalid, MPC_STATUS_OK else
    120120 */
    121 static inline mpc_status mpc_check_key(char * key)
     121static mpc_inline mpc_status mpc_check_key(char * key)
    122122{
    123123        if (key[0] < 65 || key[0] > 90 || key[1] < 65 || key[1] > 90)
Note: See TracChangeset for help on using the changeset viewer.