• Andreas Rheinhardt's avatar
    avcodec/mpc7, mpc7data: Avoid gaps in array · 158f7df5
    Andreas Rheinhardt authored
    The Musepack decoder uses static VLC tables to parse the bitstream.
    There are 14 different quant tables VLCs and each of them has a varying
    number of codes. The maximum number is 63, the average number is 25.3.
    Up until now, the array containing the raw data was of type
    uint16_t [7][2][64 * 2] (the 14 tables come in pairs of two, hence [7][2]
    instead of [14]) and from this it follows that there were large gaps in
    said array. This commit changes this by making it a continuous array
    instead. Doing so saves about 2KB.
    Reviewed-by: 's avatarPaul B Mahol <onemda@gmail.com>
    Signed-off-by: 's avatarAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
    158f7df5
mpc7data.h 7.06 KB