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

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

File:
1 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;
Note: See TracChangeset for help on using the changeset viewer.