Skip to content
Snippets Groups Projects
Commit c4cccc8d authored by Mans Rullgard's avatar Mans Rullgard
Browse files

h264: fix invalid pointer arithmetic


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: default avatarMans Rullgard <mans@mansr.com>
parent 50be2077
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment