• Michael Niedermayer's avatar
    h264: move q0 scan tables into context · b7d14883
    Michael Niedermayer authored
    This fixes out of global array reads.
    The alternative solutions of checking the index or modifying the VLC tables
    to prevent the index going outside are each about 1-2 cpu cyclces slower
    per coded 4x4 block.
    The alternative of padding the global tables directly is more ugly and
    moving them to the context should benefit cache locality.
    
    Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
    Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
    b7d14883
h264data.h 11.3 KB