libavcodec/g2meet.c:258: error: Integer Overflow L2
  ([0, +oo] - 9):unsigned32 by call to `bitstream_read_vlc`.

libavcodec/g2meet.c:239:1: Parameter `(*c->dc_vlc[*].table)[*]`
237. }
238. 
239. static int jpg_decode_block(JPGContext *c, BitstreamContext *bc,
     ^
240.                             int plane, int16_t *block)
241. {

libavcodec/g2meet.c:247:10: Call
245. 
246.     c->bdsp.clear_block(block);
247.     dc = bitstream_read_vlc(bc, c->dc_vlc[is_chroma].table, 9, 3);
              ^
248.     if (dc < 0)
249.         return AVERROR_INVALIDDATA;

libavcodec/bitstream.h:313:1: Parameter `(*table)[*]`
  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:319:5: Assignment
  317.     unsigned idx = bitstream_peek(bc, bits);
  318.     int code = table[idx][0];
  319.     int n    = table[idx][1];
           ^
  320. 
  321.     if (max_depth > 1 && n < 0) {

libavcodec/bitstream.h:329:5: Call
  327.         }
  328.     }
  329.     skip_remaining(bc, n);
           ^
  330. 
  331.     return code;

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: Assignment
    235.     bc->bits <<= n;
    236. #endif
    237.     bc->bits_left -= n;
             ^
    238. }
    239. 

libavcodec/g2meet.c:258:15: Call
256.     pos = 0;
257.     while (pos < 63) {
258.         val = bitstream_read_vlc(bc, c->ac_vlc[is_chroma].table, 9, 3);
                   ^
259.         if (val < 0)
260.             return AVERROR_INVALIDDATA;

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] - 9):unsigned32 by call to `bitstream_read_vlc` 
    235.     bc->bits <<= n;
    236. #endif
    237.     bc->bits_left -= n;
             ^
    238. }
    239. 

static inline void skip_remaining(BitstreamContext *bc, unsigned n)
{
#ifdef BITSTREAM_READER_LE
    bc->bits >>= n;
#else
    bc->bits <<= n;
#endif
    bc->bits_left -= n;
}
['static int jpg_decode_block(JPGContext *c, BitstreamContext *bc,\n                            int plane, int16_t *block)\n{\n    int dc, val, pos;\n    const int is_chroma = !!plane;\n    const uint8_t *qmat = is_chroma ? chroma_quant : luma_quant;\n    c->bdsp.clear_block(block);\n    dc = bitstream_read_vlc(bc, c->dc_vlc[is_chroma].table, 9, 3);\n    if (dc < 0)\n        return AVERROR_INVALIDDATA;\n    if (dc)\n        dc = bitstream_read_xbits(bc, dc);\n    dc                = dc * qmat[0] + c->prev_dc[plane];\n    block[0]          = dc;\n    c->prev_dc[plane] = dc;\n    pos = 0;\n    while (pos < 63) {\n        val = bitstream_read_vlc(bc, c->ac_vlc[is_chroma].table, 9, 3);\n        if (val < 0)\n            return AVERROR_INVALIDDATA;\n        pos += val >> 4;\n        val &= 0xF;\n        if (pos > 63)\n            return val ? AVERROR_INVALIDDATA : 0;\n        if (val) {\n            int nbits = val;\n            val                                 = bitstream_read_xbits(bc, nbits);\n            val                                *= qmat[ff_zigzag_direct[pos]];\n            block[c->scantable.permutated[pos]] = val;\n        }\n    }\n    return 0;\n}', 'static inline int bitstream_read_vlc(BitstreamContext *bc, VLC_TYPE (*table)[2],\n                                     int bits, int max_depth)\n{\n    int nb_bits;\n    unsigned idx = bitstream_peek(bc, bits);\n    int code = table[idx][0];\n    int n    = table[idx][1];\n    if (max_depth > 1 && n < 0) {\n        skip_remaining(bc, bits);\n        code = set_idx(bc, code, &n, &nb_bits, table);\n        if (max_depth > 2 && n < 0) {\n            skip_remaining(bc, nb_bits);\n            code = set_idx(bc, code, &n, &nb_bits, table);\n        }\n    }\n    skip_remaining(bc, n);\n    return code;\n}', 'static inline void skip_remaining(BitstreamContext *bc, unsigned n)\n{\n#ifdef BITSTREAM_READER_LE\n    bc->bits >>= n;\n#else\n    bc->bits <<= n;\n#endif\n    bc->bits_left -= n;\n}']