lavc: check for overflow in init_get_bits
authorLuca Barbato <lu_zero@gentoo.org>
Sun, 13 Jan 2013 18:52:45 +0000 (19:52 +0100)
committerLuca Barbato <lu_zero@gentoo.org>
Mon, 14 Jan 2013 03:49:14 +0000 (04:49 +0100)
commitd9cf5f516974c64e01846ca685301014b38cf224
tree75e6d55b9567d4b4c8f8b791e6cb36a2e4d59d79
parent90cfc084e3e6d37ab88fc96a95f0401d8e8b4cd1
lavc: check for overflow in init_get_bits

Fix an undefined behaviour and make the function return a proper
error in case of overflow.

CC: libav-stable@libav.org
libavcodec/get_bits.h