libavcodec/flacdec.c:171: error: Null Dereference
  pointer `&gb->buffer` last assigned on line 169 could be null and is dereferenced by call to `skip_bits()` at line 171, column 5.

libavcodec/flacdec.c:165:1: start of procedure ff_flac_parse_streaminfo()
163. }
164. 
165. void ff_flac_parse_streaminfo(AVCodecContext *avctx, struct FLACStreaminfo *s,
     ^
166.                               const uint8_t *buffer)
167. {

libavcodec/flacdec.c:169:5: 
167. {
168.     GetBitContext gb;
169.     init_get_bits(&gb, buffer, FLAC_STREAMINFO_SIZE*8);
         ^
170. 
171.     skip_bits(&gb, 16); /* skip min blocksize */

libavcodec/get_bits.h:493:1: start of procedure init_get_bits()
  491.  * @param bit_size the size of the buffer in bits
  492.  */
  493. static inline void init_get_bits(GetBitContext *s,
       ^
  494.                    const uint8_t *buffer, int bit_size)
  495. {

libavcodec/get_bits.h:496:5: 
  494.                    const uint8_t *buffer, int bit_size)
  495. {
  496.     int buffer_size= (bit_size+7)>>3;
           ^
  497.     if(buffer_size < 0 || bit_size < 0) {
  498.         buffer_size = bit_size = 0;

libavcodec/get_bits.h:497:8: Taking true branch
  495. {
  496.     int buffer_size= (bit_size+7)>>3;
  497.     if(buffer_size < 0 || bit_size < 0) {
              ^
  498.         buffer_size = bit_size = 0;
  499.         buffer = NULL;

libavcodec/get_bits.h:498:9: 
  496.     int buffer_size= (bit_size+7)>>3;
  497.     if(buffer_size < 0 || bit_size < 0) {
  498.         buffer_size = bit_size = 0;
               ^
  499.         buffer = NULL;
  500.     }

libavcodec/get_bits.h:499:9: 
  497.     if(buffer_size < 0 || bit_size < 0) {
  498.         buffer_size = bit_size = 0;
  499.         buffer = NULL;
               ^
  500.     }
  501. 

libavcodec/get_bits.h:502:5: 
  500.     }
  501. 
  502.     s->buffer= buffer;
           ^
  503.     s->size_in_bits= bit_size;
  504.     s->buffer_end= buffer + buffer_size;

libavcodec/get_bits.h:503:5: 
  501. 
  502.     s->buffer= buffer;
  503.     s->size_in_bits= bit_size;
           ^
  504.     s->buffer_end= buffer + buffer_size;
  505. #ifdef ALT_BITSTREAM_READER

libavcodec/get_bits.h:504:5: 
  502.     s->buffer= buffer;
  503.     s->size_in_bits= bit_size;
  504.     s->buffer_end= buffer + buffer_size;
           ^
  505. #ifdef ALT_BITSTREAM_READER
  506.     s->index=0;

libavcodec/get_bits.h:506:5: 
  504.     s->buffer_end= buffer + buffer_size;
  505. #ifdef ALT_BITSTREAM_READER
  506.     s->index=0;
           ^
  507. #elif defined LIBMPEG2_BITSTREAM_READER
  508.     s->buffer_ptr = (uint8_t*)((intptr_t)buffer&(~1));

libavcodec/get_bits.h:516:1: return from a call to init_get_bits
  514.     skip_bits_long(s, 0);
  515. #endif
  516. }
       ^
  517. 
  518. static inline void align_get_bits(GetBitContext *s)

libavcodec/flacdec.c:171:5: 
169.     init_get_bits(&gb, buffer, FLAC_STREAMINFO_SIZE*8);
170. 
171.     skip_bits(&gb, 16); /* skip min blocksize */
         ^
172.     s->max_blocksize = get_bits(&gb, 16);
173.     if (s->max_blocksize < FLAC_MIN_BLOCKSIZE) {

libavcodec/get_bits.h:408:1: start of procedure skip_bits()
  406. }
  407. 
  408. static inline void skip_bits(GetBitContext *s, int n){
       ^
  409.  //Note gcc seems to optimize this to s->index+=n for the ALT_READER :))
  410.     OPEN_READER(re, s)

libavcodec/get_bits.h:410:5: 
  408. static inline void skip_bits(GetBitContext *s, int n){
  409.  //Note gcc seems to optimize this to s->index+=n for the ALT_READER :))
  410.     OPEN_READER(re, s)
           ^
  411.     UPDATE_CACHE(re, s)
  412.     LAST_SKIP_BITS(re, s, n)

libavcodec/get_bits.h:411:5: 
  409.  //Note gcc seems to optimize this to s->index+=n for the ALT_READER :))
  410.     OPEN_READER(re, s)
  411.     UPDATE_CACHE(re, s)
           ^
  412.     LAST_SKIP_BITS(re, s, n)
  413.     CLOSE_READER(re, s)
