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

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

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

libavcodec/get_bits.h:393:1: Parameter `s->index`
  391. }
  392. 
  393. static inline unsigned int get_bits1(GetBitContext *s){
       ^
  394. #ifdef ALT_BITSTREAM_READER
  395.     unsigned int index= s->index;

libavcodec/get_bits.h:395:5: Assignment
  393. static inline unsigned int get_bits1(GetBitContext *s){
  394. #ifdef ALT_BITSTREAM_READER
  395.     unsigned int index= s->index;
           ^
  396.     uint8_t result= s->buffer[ index>>3 ];
  397. #ifdef ALT_BITSTREAM_READER_LE

libavcodec/get_bits.h:398:5: Assignment
  396.     uint8_t result= s->buffer[ index>>3 ];
  397. #ifdef ALT_BITSTREAM_READER_LE
  398.     result>>= (index&0x07);
           ^
  399.     result&= 1;
  400. #else

libavcodec/get_bits.h:399:5: Assignment
  397. #ifdef ALT_BITSTREAM_READER_LE
  398.     result>>= (index&0x07);
  399.     result&= 1;
           ^
  400. #else
  401.     result<<= (index&0x07);

libavcodec/get_bits.h:407:5: Assignment
  405.     s->index= index;
  406. 
  407.     return result;
           ^
  408. #else
  409.     return get_bits(s, 1);

libavcodec/mpeg12.c:186:9: Binary operation: (1 - [0, 2]):unsigned32
184. {
185.     if(get_bits1(&s->gb))
186.         return 1 - (get_bits1(&s->gb) << 1);
             ^
187.     else
188.         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&0x07);\n    result&= 1;\n#else\n    result<<= (index&0x07);\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}']