Changeset 424


Ignore:
Timestamp:
02/12/09 22:54:56 (14 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
Files:
3 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)
  • libmpc/trunk/mpcgain/mpcgain.c

    r413 r424  
    11/*
    2   Copyright (c) 2006, The Musepack Development Team
     2  Copyright (c) 2006-2009, The Musepack Development Team
    33  All rights reserved.
    44
     
    5252#define MAX_HEAD_SIZE 20 // maximum size of the packet header before chapter gain (2 + 9 + 9)
    5353
    54 const char    About []        = "mpcgain - Musepack (MPC) ReplayGain calculator v" MPCGAIN_VERSION " (C) 2006-2008 MDT\nBuilt " __DATE__ " " __TIME__ "\n";
     54const char    About []        = "mpcgain - Musepack (MPC) ReplayGain calculator v" MPCGAIN_VERSION " (C) 2006-2009 MDT\nBuilt " __DATE__ " " __TIME__ "\n";
    5555
    5656
Note: See TracChangeset for help on using the changeset viewer.