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

libavcodec/mpeg12.c:189:21: <RHS trace>
187. {
188.     if(get_bits1(&s->gb))
189.         return 1 - (get_bits1(&s->gb) << 1);
                         ^
190.     else
191.         return 0;

libavcodec/mpeg12.c:189:21: Call
187. {
188.     if(get_bits1(&s->gb))
189.         return 1 - (get_bits1(&s->gb) << 1);
                         ^
190.     else
191.         return 0;

libavcodec/get_bits.h:311:1: Parameter `s->index`
  309. }
  310. 
  311. static inline unsigned int get_bits1(GetBitContext *s){
       ^
  312. #ifdef ALT_BITSTREAM_READER
  313.     unsigned int index = s->index;

libavcodec/get_bits.h:313:5: Assignment
  311. static inline unsigned int get_bits1(GetBitContext *s){
  312. #ifdef ALT_BITSTREAM_READER
  313.     unsigned int index = s->index;
           ^
  314.     uint8_t result = s->buffer[index>>3];
  315. #ifdef ALT_BITSTREAM_READER_LE

libavcodec/get_bits.h:316:5: Assignment
  314.     uint8_t result = s->buffer[index>>3];
  315. #ifdef ALT_BITSTREAM_READER_LE
  316.     result >>= index & 7;
           ^
  317.     result &= 1;
  318. #else

libavcodec/get_bits.h:317:5: Assignment
  315. #ifdef ALT_BITSTREAM_READER_LE
  316.     result >>= index & 7;
  317.     result &= 1;
           ^
  318. #else
  319.     result <<= index & 7;

libavcodec/get_bits.h:325:5: Assignment
  323.     s->index = index;
  324. 
  325.     return result;
           ^
  326. #else
  327.     return get_bits(s, 1);

libavcodec/mpeg12.c:189:9: Binary operation: (1 - [0, 2]):unsigned32
187. {
188.     if(get_bits1(&s->gb))
189.         return 1 - (get_bits1(&s->gb) << 1);
             ^
190.     else
191.         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#ifdef ALT_BITSTREAM_READER\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#else\n    return get_bits(s, 1);\n#endif\n}']