libavcodec/mpc7.c:83: error: Null Dereference
  pointer `&gb->buffer` last assigned on line 81 could be null and is dereferenced by call to `get_bits1()` at line 83, column 13.

libavcodec/mpc7.c:51:1: start of procedure mpc7_decode_init()
49. 
50. 
51. static av_cold int mpc7_decode_init(AVCodecContext * avctx)
    ^
52. {
53.     int i, j;

libavcodec/mpc7.c:54:5: 
52. {
53.     int i, j;
54.     MPCContext *c = avctx->priv_data;
        ^
55.     GetBitContext gb;
56.     uint8_t buf[16];

libavcodec/mpc7.c:57:5: 
55.     GetBitContext gb;
56.     uint8_t buf[16];
57.     static int vlc_initialized = 0;
        ^
58. 
59.     static VLC_TYPE scfi_table[1 << MPC7_SCFI_BITS][2];

libavcodec/mpc7.c:65:9: Taking false branch
63. 
64.     /* Musepack SV7 is always stereo */
65.     if (avctx->channels != 2) {
            ^
66.         av_log_ask_for_sample(avctx, "Unsupported number of channels: %d\n",
67.                               avctx->channels);

libavcodec/mpc7.c:71:8: Taking false branch
69.     }
70. 
71.     if(avctx->extradata_size < 16){
           ^
72.         av_log(avctx, AV_LOG_ERROR, "Too small extradata size (%i)!\n", avctx->extradata_size);
73.         return -1;

libavcodec/mpc7.c:75:5: 
73.         return -1;
74.     }
75.     memset(c->oldDSCF, 0, sizeof(c->oldDSCF));
        ^
76.     av_lfg_init(&c->rnd, 0xDEADBEEF);
77.     dsputil_init(&c->dsp, avctx);

libavcodec/mpc7.c:76:5: Skipping av_lfg_init(): empty list of specs
74.     }
75.     memset(c->oldDSCF, 0, sizeof(c->oldDSCF));
76.     av_lfg_init(&c->rnd, 0xDEADBEEF);
        ^
77.     dsputil_init(&c->dsp, avctx);
78.     ff_mpadsp_init(&c->mpadsp);

libavcodec/mpc7.c:77:5: Skipping dsputil_init(): empty list of specs
75.     memset(c->oldDSCF, 0, sizeof(c->oldDSCF));
76.     av_lfg_init(&c->rnd, 0xDEADBEEF);
77.     dsputil_init(&c->dsp, avctx);
        ^
78.     ff_mpadsp_init(&c->mpadsp);
79.     c->dsp.bswap_buf((uint32_t*)buf, (const uint32_t*)avctx->extradata, 4);

libavcodec/mpc7.c:78:5: 
76.     av_lfg_init(&c->rnd, 0xDEADBEEF);
77.     dsputil_init(&c->dsp, avctx);
78.     ff_mpadsp_init(&c->mpadsp);
        ^
79.     c->dsp.bswap_buf((uint32_t*)buf, (const uint32_t*)avctx->extradata, 4);
80.     ff_mpc_init();

libavcodec/mpegaudiodsp.c:26:1: start of procedure ff_mpadsp_init()
  24. #include "dct32.h"
  25. 
  26. void ff_mpadsp_init(MPADSPContext *s)
      ^
  27. {
  28.     DCTContext dct;

libavcodec/mpegaudiodsp.c:30:5: Skipping ff_dct_init(): empty list of specs
  28.     DCTContext dct;
  29. 
  30.     ff_dct_init(&dct, 5, DCT_II);
          ^
  31. 
  32.     s->apply_window_float = ff_mpadsp_apply_window_float;

libavcodec/mpegaudiodsp.c:32:5: 
  30.     ff_dct_init(&dct, 5, DCT_II);
  31. 
  32.     s->apply_window_float = ff_mpadsp_apply_window_float;
          ^
  33.     s->apply_window_fixed = ff_mpadsp_apply_window_fixed;
  34. 

libavcodec/mpegaudiodsp.c:33:5: 
  31. 
  32.     s->apply_window_float = ff_mpadsp_apply_window_float;
  33.     s->apply_window_fixed = ff_mpadsp_apply_window_fixed;
          ^
  34. 
  35.     s->dct32_float = dct.dct32;

libavcodec/mpegaudiodsp.c:35:5: 
  33.     s->apply_window_fixed = ff_mpadsp_apply_window_fixed;
  34. 
  35.     s->dct32_float = dct.dct32;
          ^
  36.     s->dct32_fixed = ff_dct32_fixed;
  37. 

libavcodec/mpegaudiodsp.c:36:5: 
  34. 
  35.     s->dct32_float = dct.dct32;
  36.     s->dct32_fixed = ff_dct32_fixed;
          ^
  37. 
  38.     if (ARCH_ARM)     ff_mpadsp_init_arm(s);

libavcodec/mpegaudiodsp.c:38:9: Taking false branch
  36.     s->dct32_fixed = ff_dct32_fixed;
  37. 
  38.     if (ARCH_ARM)     ff_mpadsp_init_arm(s);
              ^
  39.     if (HAVE_MMX)     ff_mpadsp_init_mmx(s);
  40.     if (HAVE_ALTIVEC) ff_mpadsp_init_altivec(s);

libavcodec/mpegaudiodsp.c:39:9: Taking false branch
  37. 
  38.     if (ARCH_ARM)     ff_mpadsp_init_arm(s);
  39.     if (HAVE_MMX)     ff_mpadsp_init_mmx(s);
              ^
  40.     if (HAVE_ALTIVEC) ff_mpadsp_init_altivec(s);
  41. }

libavcodec/mpegaudiodsp.c:40:9: Taking false branch
  38.     if (ARCH_ARM)     ff_mpadsp_init_arm(s);
  39.     if (HAVE_MMX)     ff_mpadsp_init_mmx(s);
  40.     if (HAVE_ALTIVEC) ff_mpadsp_init_altivec(s);
              ^
  41. }

libavcodec/mpegaudiodsp.c:40:5: 
  38.     if (ARCH_ARM)     ff_mpadsp_init_arm(s);
  39.     if (HAVE_MMX)     ff_mpadsp_init_mmx(s);
  40.     if (HAVE_ALTIVEC) ff_mpadsp_init_altivec(s);
          ^
  41. }

libavcodec/mpegaudiodsp.c:41:1: return from a call to ff_mpadsp_init
  39.     if (HAVE_MMX)     ff_mpadsp_init_mmx(s);
  40.     if (HAVE_ALTIVEC) ff_mpadsp_init_altivec(s);
  41. }
      ^

libavcodec/mpc7.c:79:5: Skipping __function_pointer__(): unresolved function pointer
77.     dsputil_init(&c->dsp, avctx);
78.     ff_mpadsp_init(&c->mpadsp);
79.     c->dsp.bswap_buf((uint32_t*)buf, (const uint32_t*)avctx->extradata, 4);
        ^
80.     ff_mpc_init();
81.     init_get_bits(&gb, buf, 128);

libavcodec/mpc7.c:80:5: 
78.     ff_mpadsp_init(&c->mpadsp);
79.     c->dsp.bswap_buf((uint32_t*)buf, (const uint32_t*)avctx->extradata, 4);
80.     ff_mpc_init();
        ^
81.     init_get_bits(&gb, buf, 128);
82. 

libavcodec/mpc.c:38:1: start of procedure ff_mpc_init()
  36. #include "mpcdata.h"
  37. 
  38. void ff_mpc_init(void)
      ^
  39. {
  40.     ff_mpa_synth_init_fixed(ff_mpa_synth_window_fixed);

libavcodec/mpc.c:40:5: Skipping ff_mpa_synth_init_fixed(): method has no implementation
  38. void ff_mpc_init(void)
  39. {
  40.     ff_mpa_synth_init_fixed(ff_mpa_synth_window_fixed);
          ^
  41. }
  42. 

libavcodec/mpc.c:41:1: return from a call to ff_mpc_init
  39. {
  40.     ff_mpa_synth_init_fixed(ff_mpa_synth_window_fixed);
  41. }
      ^
  42. 
  43. /**

libavcodec/mpc7.c:81:5: 
79.     c->dsp.bswap_buf((uint32_t*)buf, (const uint32_t*)avctx->extradata, 4);
80.     ff_mpc_init();
81.     init_get_bits(&gb, buf, 128);
        ^
82. 
83.     c->IS = get_bits1(&gb);

libavcodec/get_bits.h:339:1: start of procedure init_get_bits()
  337.  * @param bit_size the size of the buffer in bits
  338.  */
  339. static inline void init_get_bits(GetBitContext *s, const uint8_t *buffer,
       ^
  340.                                  int bit_size)
  341. {

libavcodec/get_bits.h:342:5: 
  340.                                  int bit_size)
  341. {
  342.     int buffer_size = (bit_size+7)>>3;
           ^
  343.     if (buffer_size < 0 || bit_size < 0) {
  344.         buffer_size = bit_size = 0;

libavcodec/get_bits.h:343:9: Taking true branch
  341. {
  342.     int buffer_size = (bit_size+7)>>3;
  343.     if (buffer_size < 0 || bit_size < 0) {
               ^
  344.         buffer_size = bit_size = 0;
  345.         buffer = NULL;

libavcodec/get_bits.h:344:9: 
  342.     int buffer_size = (bit_size+7)>>3;
  343.     if (buffer_size < 0 || bit_size < 0) {
  344.         buffer_size = bit_size = 0;
               ^
  345.         buffer = NULL;
  346.     }

libavcodec/get_bits.h:345:9: 
  343.     if (buffer_size < 0 || bit_size < 0) {
  344.         buffer_size = bit_size = 0;
  345.         buffer = NULL;
               ^
  346.     }
  347. 

libavcodec/get_bits.h:348:5: 
  346.     }
  347. 
  348.     s->buffer       = buffer;
           ^
  349.     s->size_in_bits = bit_size;
  350. #if !UNCHECKED_BITSTREAM_READER

libavcodec/get_bits.h:349:5: 
  347. 
  348.     s->buffer       = buffer;
  349.     s->size_in_bits = bit_size;
           ^
  350. #if !UNCHECKED_BITSTREAM_READER
  351.     s->size_in_bits_plus8 = bit_size + 8;

libavcodec/get_bits.h:351:5: 
  349.     s->size_in_bits = bit_size;
  350. #if !UNCHECKED_BITSTREAM_READER
  351.     s->size_in_bits_plus8 = bit_size + 8;
           ^
  352. #endif
  353.     s->buffer_end   = buffer + buffer_size;

libavcodec/get_bits.h:353:5: 
  351.     s->size_in_bits_plus8 = bit_size + 8;
  352. #endif
  353.     s->buffer_end   = buffer + buffer_size;
           ^
  354.     s->index        = 0;
  355. }

libavcodec/get_bits.h:354:5: 
  352. #endif
  353.     s->buffer_end   = buffer + buffer_size;
  354.     s->index        = 0;
           ^
  355. }
  356. 

libavcodec/get_bits.h:355:1: return from a call to init_get_bits
  353.     s->buffer_end   = buffer + buffer_size;
  354.     s->index        = 0;
  355. }
       ^
  356. 
  357. static inline void align_get_bits(GetBitContext *s)

libavcodec/mpc7.c:83:5: 
81.     init_get_bits(&gb, buf, 128);
82. 
83.     c->IS = get_bits1(&gb);
        ^
84.     c->MSS = get_bits1(&gb);
85.     c->maxbands = get_bits(&gb, 6);

libavcodec/get_bits.h:255:1: start of procedure get_bits1()
  253. }
  254. 
  255. static inline unsigned int get_bits1(GetBitContext *s)
       ^
  256. {
  257.     unsigned int index = s->index;

libavcodec/get_bits.h:257:5: 
  255. static inline unsigned int get_bits1(GetBitContext *s)
  256. {
  257.     unsigned int index = s->index;
           ^
  258.     uint8_t result = s->buffer[index>>3];
  259. #ifdef BITSTREAM_READER_LE

libavcodec/get_bits.h:258:5: 
  256. {
  257.     unsigned int index = s->index;
  258.     uint8_t result = s->buffer[index>>3];
           ^
  259. #ifdef BITSTREAM_READER_LE
  260.     result >>= index & 7;
