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

libavcodec/tscc2.c:213:1: <LHS trace>
211. }
212. 
213. static int tscc2_decode_frame(AVCodecContext *avctx, void *data,
     ^
214.                               int *data_size, AVPacket *avpkt)
215. {

libavcodec/tscc2.c:213:1: Parameter `*avpkt->data`
211. }
212. 
213. static int tscc2_decode_frame(AVCodecContext *avctx, void *data,
     ^
214.                               int *data_size, AVPacket *avpkt)
215. {

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

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:252:19: Call
250.     }
251. 
252.     c->quant[0] = bytestream2_get_byte(&gb);
                       ^
253.     c->quant[1] = bytestream2_get_byte(&gb);
254.     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:253:19: Call
251. 
252.     c->quant[0] = bytestream2_get_byte(&gb);
253.     c->quant[1] = bytestream2_get_byte(&gb);
                       ^
254.     if (c->quant[0] < 2 || c->quant[0] > NUM_VLC_SETS + 1 ||
255.         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:292:16: Call
290. 
291.     for (i = 0; i < c->mb_height; i++) {
292.         size = bytestream2_peek_byte(&gb);
                    ^
293.         if (size & 1) {
294.             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:294:20: Call
292.         size = bytestream2_peek_byte(&gb);
293.         if (size & 1) {
294.             size = bytestream2_get_byte(&gb) - 1;
                        ^
295.         } else {
296.             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:294:13: Binary operation: ([0, *avpkt->data] - 1):unsigned32
292.         size = bytestream2_peek_byte(&gb);
293.         if (size & 1) {
294.             size = bytestream2_get_byte(&gb) - 1;
                 ^
295.         } else {
296.             size = bytestream2_get_le32(&gb) >> 1;
