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:271:1: Parameter `s->index`
  269. }
  270. 
  271. static inline unsigned int get_bits1(GetBitContext *s)
       ^
  272. {
  273.     unsigned int index = s->index;

libavcodec/get_bits.h:273:5: Assignment
  271. static inline unsigned int get_bits1(GetBitContext *s)
  272. {
  273.     unsigned int index = s->index;
           ^
  274.     uint8_t result     = s->buffer[index >> 3];
  275. #ifdef BITSTREAM_READER_LE

libavcodec/get_bits.h:276:5: Assignment
  274.     uint8_t result     = s->buffer[index >> 3];
  275. #ifdef BITSTREAM_READER_LE
  276.     result >>= index & 7;
           ^
  277.     result  &= 1;
  278. #else

libavcodec/get_bits.h:277:5: Assignment
  275. #ifdef BITSTREAM_READER_LE
  276.     result >>= index & 7;
  277.     result  &= 1;
           ^
  278. #else
  279.     result <<= index & 7;

libavcodec/get_bits.h:288:5: Assignment
  286.     s->index = index;
  287. 
  288.     return result;
           ^
  289. }
  290. 

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{\n    unsigned int index = s->index;\n    uint8_t result     = s->buffer[index >> 3];\n#ifdef BITSTREAM_READER_LE\n    result >>= index & 7;\n    result  &= 1;\n#else\n    result <<= index & 7;\n    result >>= 8 - 1;\n#endif\n#if !UNCHECKED_BITSTREAM_READER\n    if (s->index < s->size_in_bits_plus8)\n#endif\n        index++;\n    s->index = index;\n    return result;\n}']