libavcodec/hq_hqa.c:229: error: Integer Overflow L2
  ([0, +oo] - 5):unsigned32 by call to `hqa_decode_mb`.

libavcodec/hq_hqa.c:220:1: Parameter `bc->bits_left`
218. }
219. 
220. static int hqa_decode_slice(HQContext *ctx, AVFrame *pic, BitstreamContext *bc,
     ^
221.                             int quant, int slice_no, int w, int h)
222. {

libavcodec/hq_hqa.c:229:19: Call
227.         off = (slice_no * 16 + i * 3) & 0x70;
228.         for (j = off; j < w; j += 128) {
229.             ret = hqa_decode_mb(ctx, pic, quant, bc, j, i);
                       ^
230.             if (ret < 0) {
231.                 av_log(ctx->avctx, AV_LOG_ERROR,

libavcodec/hq_hqa.c:180:1: Parameter `bc->bits_left`
  178. }
  179. 
  180. static int hqa_decode_mb(HQContext *c, AVFrame *pic, int qgroup,
       ^
  181.                          BitstreamContext *bc, int x, int y)
  182. {

libavcodec/hq_hqa.c:186:11: Call
  184.     int i, ret, cbp;
  185. 
  186.     cbp = bitstream_read_vlc(bc, c->hqa_cbp_vlc.table, 5, 1);
                 ^
  187. 
  188.     for (i = 0; i < 12; i++)

libavcodec/bitstream.h:313:1: Parameter `bits`
    311.  * If the VLC code is invalid and max_depth > 1, then the number of bits removed
    312.  * is undefined. */
    313. static inline int bitstream_read_vlc(BitstreamContext *bc, VLC_TYPE (*table)[2],
         ^
    314.                                      int bits, int max_depth)
    315. {

libavcodec/bitstream.h:322:9: Call
    320. 
    321.     if (max_depth > 1 && n < 0) {
    322.         skip_remaining(bc, bits);
                 ^
    323.         code = set_idx(bc, code, &n, &nb_bits, table);
    324.         if (max_depth > 2 && n < 0) {

libavcodec/bitstream.h:230:1: <LHS trace>
228. }
229. 
230. static inline void skip_remaining(BitstreamContext *bc, unsigned n)
     ^
231. {
232. #ifdef BITSTREAM_READER_LE

libavcodec/bitstream.h:230:1: Parameter `bc->bits_left`
      228. }
      229. 
      230. static inline void skip_remaining(BitstreamContext *bc, unsigned n)
           ^
      231. {
      232. #ifdef BITSTREAM_READER_LE

libavcodec/bitstream.h:230:1: <RHS trace>
228. }
229. 
230. static inline void skip_remaining(BitstreamContext *bc, unsigned n)
     ^
231. {
232. #ifdef BITSTREAM_READER_LE

libavcodec/bitstream.h:230:1: Parameter `n`
      228. }
      229. 
      230. static inline void skip_remaining(BitstreamContext *bc, unsigned n)
           ^
      231. {
      232. #ifdef BITSTREAM_READER_LE

libavcodec/bitstream.h:237:5: Binary operation: ([0, +oo] - 5):unsigned32 by call to `hqa_decode_mb` 
      235.     bc->bits <<= n;
      236. #endif
      237.     bc->bits_left -= n;
               ^
      238. }
      239. 
