libavcodec/tscc2.c:296: error: Integer Overflow L2
  ([0, `*avpkt->data`] - 1):unsigned32.

libavcodec/tscc2.c:216:1: <LHS trace>
214. }
215. 
216. static int tscc2_decode_frame(AVCodecContext *avctx, void *data,
     ^
217.                               int *got_frame, AVPacket *avpkt)
218. {

libavcodec/tscc2.c:216:1: Parameter `*avpkt->data`
214. }
215. 
216. static int tscc2_decode_frame(AVCodecContext *avctx, void *data,
     ^
217.                               int *got_frame, AVPacket *avpkt)
218. {

libavcodec/tscc2.c:229:18: Call
227. 
228.     bytestream2_init(&gb, buf, buf_size);
229.     frame_type = bytestream2_get_byte(&gb);
                      ^
230.     if (frame_type > 1) {
231.         av_log(avctx, AV_LOG_ERROR, "Incorrect frame type %"PRIu32"\n",

libavcodec/bytestream.h:92:1: Parameter `*g->buffer`
  90. DEF(unsigned int, be24, 3, AV_RB24, AV_WB24)
  91. DEF(unsigned int, be16, 2, AV_RB16, AV_WB16)
  92. DEF(unsigned int, byte, 1, AV_RB8 , AV_WB8)
      ^
  93. 
  94. #if HAVE_BIGENDIAN

libavcodec/tscc2.c:254:19: Call
252.     }
253. 
254.     c->quant[0] = bytestream2_get_byte(&gb);
                       ^
255.     c->quant[1] = bytestream2_get_byte(&gb);
256.     if (c->quant[0] < 2 || c->quant[0] > NUM_VLC_SETS + 1 ||

libavcodec/bytestream.h:92:1: Parameter `*g->buffer`
  90. DEF(unsigned int, be24, 3, AV_RB24, AV_WB24)
  91. DEF(unsigned int, be16, 2, AV_RB16, AV_WB16)
  92. DEF(unsigned int, byte, 1, AV_RB8 , AV_WB8)
      ^
  93. 
  94. #if HAVE_BIGENDIAN

libavcodec/tscc2.c:255:19: Call
253. 
254.     c->quant[0] = bytestream2_get_byte(&gb);
255.     c->quant[1] = bytestream2_get_byte(&gb);
                       ^
256.     if (c->quant[0] < 2 || c->quant[0] > NUM_VLC_SETS + 1 ||
257.         c->quant[1] < 2 || c->quant[1] > NUM_VLC_SETS + 1) {

libavcodec/bytestream.h:92:1: Parameter `*g->buffer`
  90. DEF(unsigned int, be24, 3, AV_RB24, AV_WB24)
  91. DEF(unsigned int, be16, 2, AV_RB16, AV_WB16)
  92. DEF(unsigned int, byte, 1, AV_RB8 , AV_WB8)
      ^
  93. 
  94. #if HAVE_BIGENDIAN

libavcodec/tscc2.c:294:16: Call
292. 
293.     for (i = 0; i < c->mb_height; i++) {
294.         size = bytestream2_peek_byte(&gb);
                    ^
295.         if (size & 1) {
296.             size = bytestream2_get_byte(&gb) - 1;

libavcodec/bytestream.h:92:1: Parameter `*g->buffer`
  90. DEF(unsigned int, be24, 3, AV_RB24, AV_WB24)
  91. DEF(unsigned int, be16, 2, AV_RB16, AV_WB16)
  92. DEF(unsigned int, byte, 1, AV_RB8 , AV_WB8)
      ^
  93. 
  94. #if HAVE_BIGENDIAN

libavcodec/tscc2.c:296:20: Call
294.         size = bytestream2_peek_byte(&gb);
295.         if (size & 1) {
296.             size = bytestream2_get_byte(&gb) - 1;
                        ^
297.         } else {
298.             size = bytestream2_get_le32(&gb) >> 1;

libavcodec/bytestream.h:92:1: Assignment
  90. DEF(unsigned int, be24, 3, AV_RB24, AV_WB24)
  91. DEF(unsigned int, be16, 2, AV_RB16, AV_WB16)
  92. DEF(unsigned int, byte, 1, AV_RB8 , AV_WB8)
      ^
  93. 
  94. #if HAVE_BIGENDIAN

libavcodec/tscc2.c:296:13: Binary operation: ([0, *avpkt->data] - 1):unsigned32
294.         size = bytestream2_peek_byte(&gb);
295.         if (size & 1) {
296.             size = bytestream2_get_byte(&gb) - 1;
                 ^
297.         } else {
298.             size = bytestream2_get_le32(&gb) >> 1;
