libavcodec/flac.c:110: error: Null Dereference
  pointer `s->gb.buffer` last assigned on line 108 could be null and is dereferenced by call to `metadata_streaminfo()` at line 110, column 13.

libavcodec/flac.c:101:1: start of procedure flac_decode_init()
 99. static int metadata_parse(FLACContext *s);
100. 
101. static av_cold int flac_decode_init(AVCodecContext * avctx)
     ^
102. {
103.     FLACContext *s = avctx->priv_data;

libavcodec/flac.c:103:5: 
101. static av_cold int flac_decode_init(AVCodecContext * avctx)
102. {
103.     FLACContext *s = avctx->priv_data;
         ^
104.     s->avctx = avctx;
105. 

libavcodec/flac.c:104:5: 
102. {
103.     FLACContext *s = avctx->priv_data;
104.     s->avctx = avctx;
         ^
105. 
106.     if (avctx->extradata_size > 4) {

libavcodec/flac.c:106:9: Taking true branch
104.     s->avctx = avctx;
105. 
106.     if (avctx->extradata_size > 4) {
             ^
107.         /* initialize based on the demuxer-supplied streamdata header */
108.         init_get_bits(&s->gb, avctx->extradata, avctx->extradata_size*8);

libavcodec/flac.c:108:9: 
106.     if (avctx->extradata_size > 4) {
107.         /* initialize based on the demuxer-supplied streamdata header */
108.         init_get_bits(&s->gb, avctx->extradata, avctx->extradata_size*8);
             ^
109.         if (avctx->extradata_size == FLAC_STREAMINFO_SIZE) {
110.             metadata_streaminfo(s);

libavcodec/bitstream.h:758:1: start of procedure init_get_bits()
  756.  * @param bit_size the size of the buffer in bits
  757.  */
  758. static inline void init_get_bits(GetBitContext *s,
       ^
  759.                    const uint8_t *buffer, int bit_size)
  760. {

libavcodec/bitstream.h:761:5: 
  759.                    const uint8_t *buffer, int bit_size)
  760. {
  761.     int buffer_size= (bit_size+7)>>3;
           ^
  762.     if(buffer_size < 0 || bit_size < 0) {
  763.         buffer_size = bit_size = 0;

libavcodec/bitstream.h:762:8: Taking true branch
  760. {
  761.     int buffer_size= (bit_size+7)>>3;
  762.     if(buffer_size < 0 || bit_size < 0) {
              ^
  763.         buffer_size = bit_size = 0;
  764.         buffer = NULL;

libavcodec/bitstream.h:763:9: 
  761.     int buffer_size= (bit_size+7)>>3;
  762.     if(buffer_size < 0 || bit_size < 0) {
  763.         buffer_size = bit_size = 0;
               ^
  764.         buffer = NULL;
  765.     }

libavcodec/bitstream.h:764:9: 
  762.     if(buffer_size < 0 || bit_size < 0) {
  763.         buffer_size = bit_size = 0;
  764.         buffer = NULL;
               ^
  765.     }
  766. 

libavcodec/bitstream.h:767:5: 
  765.     }
  766. 
  767.     s->buffer= buffer;
           ^
  768.     s->size_in_bits= bit_size;
  769.     s->buffer_end= buffer + buffer_size;

libavcodec/bitstream.h:768:5: 
  766. 
  767.     s->buffer= buffer;
  768.     s->size_in_bits= bit_size;
           ^
  769.     s->buffer_end= buffer + buffer_size;
  770. #ifdef ALT_BITSTREAM_READER

libavcodec/bitstream.h:769:5: 
  767.     s->buffer= buffer;
  768.     s->size_in_bits= bit_size;
  769.     s->buffer_end= buffer + buffer_size;
           ^
  770. #ifdef ALT_BITSTREAM_READER
  771.     s->index=0;

libavcodec/bitstream.h:771:5: 
  769.     s->buffer_end= buffer + buffer_size;
  770. #ifdef ALT_BITSTREAM_READER
  771.     s->index=0;
           ^
  772. #elif defined LIBMPEG2_BITSTREAM_READER
  773.     s->buffer_ptr = (uint8_t*)((intptr_t)buffer&(~1));

libavcodec/bitstream.h:781:1: return from a call to init_get_bits
  779.     skip_bits_long(s, 0);
  780. #endif
  781. }
       ^
  782. 
  783. static inline void align_get_bits(GetBitContext *s)

libavcodec/flac.c:109:13: Taking true branch
107.         /* initialize based on the demuxer-supplied streamdata header */
108.         init_get_bits(&s->gb, avctx->extradata, avctx->extradata_size*8);
109.         if (avctx->extradata_size == FLAC_STREAMINFO_SIZE) {
                 ^
110.             metadata_streaminfo(s);
111.             allocate_buffers(s);

libavcodec/flac.c:110:13: 
108.         init_get_bits(&s->gb, avctx->extradata, avctx->extradata_size*8);
109.         if (avctx->extradata_size == FLAC_STREAMINFO_SIZE) {
110.             metadata_streaminfo(s);
                 ^
111.             allocate_buffers(s);
112.         } else {
