• Martin Storsjö's avatar
    alac: Check that the channels fit at the given offset · 35cbc98b
    Martin Storsjö authored
    The code tries to decode a number of channels at the
    offset given by the ff_alac_channel_layout_offsets table.
    Even if the number of channels decoded so far doesn't
    exceed the total number of channels, we need to check that
    we actually can decode that number of channels at this offset
    as well.
    
    Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
    CC: libav-stable@libav.org
    Signed-off-by: 's avatarMartin Storsjö <martin@martin.st>
    35cbc98b
alac.c 18.5 KB