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:255:1: Parameter `s->index`
  253. }
  254. 
  255. static inline unsigned int get_bits1(GetBitContext *s)
       ^
  256. {
  257.     unsigned int index = s->index;

libavcodec/get_bits.h:257:5: Assignment
  255. static inline unsigned int get_bits1(GetBitContext *s)
  256. {
  257.     unsigned int index = s->index;
           ^
  258.     uint8_t result = s->buffer[index>>3];
  259. #ifdef BITSTREAM_READER_LE

libavcodec/get_bits.h:260:5: Assignment
  258.     uint8_t result = s->buffer[index>>3];
  259. #ifdef BITSTREAM_READER_LE
  260.     result >>= index & 7;
           ^
  261.     result &= 1;
  262. #else

libavcodec/get_bits.h:261:5: Assignment
  259. #ifdef BITSTREAM_READER_LE
  260.     result >>= index & 7;
  261.     result &= 1;
           ^
  262. #else
  263.     result <<= index & 7;

libavcodec/get_bits.h:272:5: Assignment
  270.     s->index = index;
  271. 
  272.     return result;
           ^
  273. }
  274. 

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}']