libavcodec/cook.c:344: error: Integer Overflow L2
  ([0, +oo] - 7):unsigned32.

libavcodec/cook.c:344:45: <LHS trace>
342.     while (n--) {
343.         int index = bitstream_read(bc, 3);
344.         int gain = bitstream_read_bit(bc) ? bitstream_read(bc, 4) - 7 : -1;
                                                 ^
345. 
346.         while (i <= index)

libavcodec/cook.c:344:45: Call
342.     while (n--) {
343.         int index = bitstream_read(bc, 3);
344.         int gain = bitstream_read_bit(bc) ? bitstream_read(bc, 4) - 7 : -1;
                                                 ^
345. 
346.         while (i <= index)

libavcodec/bitstream.h:186:9: Assignment
  184. {
  185.     if (!n)
  186.         return 0;
               ^
  187. 
  188.     if (n > bc->bits_left) {

libavcodec/cook.c:344:20: Binary operation: ([0, +oo] - 7):unsigned32
342.     while (n--) {
343.         int index = bitstream_read(bc, 3);
344.         int gain = bitstream_read_bit(bc) ? bitstream_read(bc, 4) - 7 : -1;
                        ^
345. 
346.         while (i <= index)
