h264: fix invalid pointer arithmetic
authorMans Rullgard <mans@mansr.com>
Fri, 26 Oct 2012 20:18:33 +0000 (21:18 +0100)
committerMans Rullgard <mans@mansr.com>
Sat, 27 Oct 2012 16:02:46 +0000 (17:02 +0100)
commitc4cccc8d3f6605c5fdd73723a865486c5b7fb117
tree41757f132baf23f590c45faaf85ff8c8d4df8e97
parent50be207759aa7a69a27de585f7d870ec41eba036
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: Mans Rullgard <mans@mansr.com>
libavcodec/h264_cavlc.c