crc: fix signed overflow
authorMans Rullgard <mans@mansr.com>
Sat, 8 Oct 2011 00:59:51 +0000 (01:59 +0100)
committerMans Rullgard <mans@mansr.com>
Sun, 9 Oct 2011 15:53:31 +0000 (16:53 +0100)
commit8b19ae07616bbd18969b94cbf5d74308a8f2bbdf
tree8623bbd3bbc9d3b188645c05c8688d2cb74524b2
parent0836d48a16419faf742e999f565dc50d863d0f55
crc: fix signed overflow

This fixes a signed overflow from i << 24 when i == 255 by
making i unsigned.  The result of the shift is already
assigned to an variable of unsigned type.

Signed-off-by: Mans Rullgard <mans@mansr.com>
libavutil/crc.c