• Anton Khirnov's avatar
    h264: limit allowed pred modes in ff_h264_check_intra_pred_mode() to 3 · 7f0e81db
    Anton Khirnov authored
    Higher modes are not allowed for 16x16/chroma, which is what this
    function is used for. Otherwise this function would return 0 (vertical
    prediction) for invalid higher modes, which could result in invalid
    reads.
    
    Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
    CC:libav-stable@libav.org
    7f0e81db
h264.c 185 KB