• Mans Rullgard's avatar
    h264: fix invalid pointer arithmetic · c4cccc8d
    Mans Rullgard authored
    Subtracting a (positive) value from the address of an array violates
    C99 section 6.5.6:
    
      If both the pointer operand and the result point to elements of the
      same array object, or one past the last element of the array object,
      the evaluation shall not produce an overflow; otherwise, the
      behavior is undefined.
    Signed-off-by: 's avatarMans Rullgard <mans@mansr.com>
    c4cccc8d
h264_cavlc.c 43.5 KB