libavcodec/h264_refs.c:645: error: Integer Overflow L2
  ([0, 1] - 1):unsigned32.

libavcodec/h264_refs.c:645:25: <LHS trace>
643.     h->mmco_index= 0;
644.     if(h->nal_unit_type == NAL_IDR_SLICE){ //FIXME fields
645.         s->broken_link= get_bits1(gb) -1;
                             ^
646.         if(get_bits1(gb)){
647.             h->mmco[0].opcode= MMCO_LONG;

libavcodec/h264_refs.c:645:25: Call
643.     h->mmco_index= 0;
644.     if(h->nal_unit_type == NAL_IDR_SLICE){ //FIXME fields
645.         s->broken_link= get_bits1(gb) -1;
                             ^
646.         if(get_bits1(gb)){
647.             h->mmco[0].opcode= MMCO_LONG;

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/h264_refs.c:645:9: Binary operation: ([0, 1] - 1):unsigned32
643.     h->mmco_index= 0;
644.     if(h->nal_unit_type == NAL_IDR_SLICE){ //FIXME fields
645.         s->broken_link= get_bits1(gb) -1;
             ^
646.         if(get_bits1(gb)){
647.             h->mmco[0].opcode= MMCO_LONG;
