libavcodec/mpeg12.c:707: error: Integer Overflow L2
  (1 - [0, 2]):unsigned32.

libavcodec/mpeg12.c:707:21: <RHS trace>
705. {
706.     if (get_bits1(&s->gb))
707.         return 1 - (get_bits1(&s->gb) << 1);
                         ^
708.     else
709.         return 0;

libavcodec/mpeg12.c:707:21: Call
705. {
706.     if (get_bits1(&s->gb))
707.         return 1 - (get_bits1(&s->gb) << 1);
                         ^
708.     else
709.         return 0;

libavcodec/get_bits.h:230:1: Parameter `s->index`
  228. }
  229. 
  230. static inline unsigned int get_bits1(GetBitContext *s){
       ^
  231.     unsigned int index = s->index;
  232.     uint8_t result = s->buffer[index>>3];

libavcodec/get_bits.h:231:5: Assignment
  229. 
  230. static inline unsigned int get_bits1(GetBitContext *s){
  231.     unsigned int index = s->index;
           ^
  232.     uint8_t result = s->buffer[index>>3];
  233. #ifdef ALT_BITSTREAM_READER_LE

libavcodec/get_bits.h:234:5: Assignment
  232.     uint8_t result = s->buffer[index>>3];
  233. #ifdef ALT_BITSTREAM_READER_LE
  234.     result >>= index & 7;
           ^
  235.     result &= 1;
  236. #else

libavcodec/get_bits.h:235:5: Assignment
  233. #ifdef ALT_BITSTREAM_READER_LE
  234.     result >>= index & 7;
  235.     result &= 1;
           ^
  236. #else
  237.     result <<= index & 7;

libavcodec/get_bits.h:243:5: Assignment
  241.     s->index = index;
  242. 
  243.     return result;
           ^
  244. }
  245. 

libavcodec/mpeg12.c:707:9: Binary operation: (1 - [0, 2]):unsigned32
705. {
706.     if (get_bits1(&s->gb))
707.         return 1 - (get_bits1(&s->gb) << 1);
             ^
708.     else
709.         return 0;

static inline int get_dmv(MpegEncContext *s)
{
    if (get_bits1(&s->gb))
        return 1 - (get_bits1(&s->gb) << 1);
    else
        return 0;
}
['static inline int get_dmv(MpegEncContext *s)\n{\n    if (get_bits1(&s->gb))\n        return 1 - (get_bits1(&s->gb) << 1);\n    else\n        return 0;\n}', 'static inline unsigned int get_bits1(GetBitContext *s){\n    unsigned int index = s->index;\n    uint8_t result = s->buffer[index>>3];\n#ifdef ALT_BITSTREAM_READER_LE\n    result >>= index & 7;\n    result &= 1;\n#else\n    result <<= index & 7;\n    result >>= 8 - 1;\n#endif\n    index++;\n    s->index = index;\n    return result;\n}']