libavcodec/mpc7.c:76: error: Null Dereference
  pointer `&gb->buffer` last assigned on line 74 could be null and is dereferenced by call to `get_bits1()` at line 76, 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:64:8: Taking false branch
62.     static VLC_TYPE quant_tables[7224][2];
63. 
64.     if(avctx->extradata_size < 16){
           ^
65.         av_log(avctx, AV_LOG_ERROR, "Too small extradata size (%i)!\n", avctx->extradata_size);
66.         return -1;

libavcodec/mpc7.c:68:5: 
66.         return -1;
67.     }
68.     memset(c->oldDSCF, 0, sizeof(c->oldDSCF));
        ^
69.     av_lfg_init(&c->rnd, 0xDEADBEEF);
70.     dsputil_init(&c->dsp, avctx);

libavcodec/mpc7.c:69:5: Skipping av_lfg_init(): empty list of specs
67.     }
68.     memset(c->oldDSCF, 0, sizeof(c->oldDSCF));
69.     av_lfg_init(&c->rnd, 0xDEADBEEF);
        ^
70.     dsputil_init(&c->dsp, avctx);
71.     ff_mpadsp_init(&c->mpadsp);

libavcodec/mpc7.c:70:5: Skipping dsputil_init(): empty list of specs
68.     memset(c->oldDSCF, 0, sizeof(c->oldDSCF));
69.     av_lfg_init(&c->rnd, 0xDEADBEEF);
70.     dsputil_init(&c->dsp, avctx);
        ^
71.     ff_mpadsp_init(&c->mpadsp);
72.     c->dsp.bswap_buf((uint32_t*)buf, (const uint32_t*)avctx->extradata, 4);

libavcodec/mpc7.c:71:5: 
69.     av_lfg_init(&c->rnd, 0xDEADBEEF);
70.     dsputil_init(&c->dsp, avctx);
71.     ff_mpadsp_init(&c->mpadsp);
        ^
72.     c->dsp.bswap_buf((uint32_t*)buf, (const uint32_t*)avctx->extradata, 4);
73.     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:72:5: Skipping __function_pointer__(): unresolved function pointer
70.     dsputil_init(&c->dsp, avctx);
71.     ff_mpadsp_init(&c->mpadsp);
72.     c->dsp.bswap_buf((uint32_t*)buf, (const uint32_t*)avctx->extradata, 4);
        ^
73.     ff_mpc_init();
74.     init_get_bits(&gb, buf, 128);

libavcodec/mpc7.c:73:5: 
71.     ff_mpadsp_init(&c->mpadsp);
72.     c->dsp.bswap_buf((uint32_t*)buf, (const uint32_t*)avctx->extradata, 4);
73.     ff_mpc_init();
        ^
74.     init_get_bits(&gb, buf, 128);
75. 

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:74:5: 
72.     c->dsp.bswap_buf((uint32_t*)buf, (const uint32_t*)avctx->extradata, 4);
73.     ff_mpc_init();
74.     init_get_bits(&gb, buf, 128);
        ^
75. 
76.     c->IS = get_bits1(&gb);

libavcodec/get_bits.h:391:1: start of procedure init_get_bits()
  389.  * responsible for checking for the buffer end yourself (take advantage of the padding)!
  390.  */
  391. static inline void init_get_bits(GetBitContext *s,
       ^
  392.                    const uint8_t *buffer, int bit_size)
  393. {

libavcodec/get_bits.h:394:5: 
  392.                    const uint8_t *buffer, int bit_size)
  393. {
  394.     int buffer_size = (bit_size+7)>>3;
           ^
  395.     if (buffer_size < 0 || bit_size < 0) {
  396.         buffer_size = bit_size = 0;

libavcodec/get_bits.h:395:9: Taking true branch
  393. {
  394.     int buffer_size = (bit_size+7)>>3;
  395.     if (buffer_size < 0 || bit_size < 0) {
               ^
  396.         buffer_size = bit_size = 0;
  397.         buffer = NULL;

libavcodec/get_bits.h:396:9: 
  394.     int buffer_size = (bit_size+7)>>3;
  395.     if (buffer_size < 0 || bit_size < 0) {
  396.         buffer_size = bit_size = 0;
               ^
  397.         buffer = NULL;
  398.     }

libavcodec/get_bits.h:397:9: 
  395.     if (buffer_size < 0 || bit_size < 0) {
  396.         buffer_size = bit_size = 0;
  397.         buffer = NULL;
               ^
  398.     }
  399. 

libavcodec/get_bits.h:400:5: 
  398.     }
  399. 
  400.     s->buffer       = buffer;
           ^
  401.     s->size_in_bits = bit_size;
  402.     s->buffer_end   = buffer + buffer_size;

libavcodec/get_bits.h:401:5: 
  399. 
  400.     s->buffer       = buffer;
  401.     s->size_in_bits = bit_size;
           ^
  402.     s->buffer_end   = buffer + buffer_size;
  403. #ifdef ALT_BITSTREAM_READER

libavcodec/get_bits.h:402:5: 
  400.     s->buffer       = buffer;
  401.     s->size_in_bits = bit_size;
  402.     s->buffer_end   = buffer + buffer_size;
           ^
  403. #ifdef ALT_BITSTREAM_READER
  404.     s->index        = 0;

libavcodec/get_bits.h:404:5: 
  402.     s->buffer_end   = buffer + buffer_size;
  403. #ifdef ALT_BITSTREAM_READER
  404.     s->index        = 0;
           ^
  405. #elif defined A32_BITSTREAM_READER
  406.     s->buffer_ptr   = (uint32_t*)((intptr_t)buffer & ~3);

libavcodec/get_bits.h:410:1: return from a call to init_get_bits
  408.     skip_bits_long(s, 0);
  409. #endif
  410. }
       ^
  411. 
  412. static inline void align_get_bits(GetBitContext *s)

libavcodec/mpc7.c:76:5: 
74.     init_get_bits(&gb, buf, 128);
75. 
76.     c->IS = get_bits1(&gb);
        ^
77.     c->MSS = get_bits1(&gb);
78.     c->maxbands = get_bits(&gb, 6);

libavcodec/get_bits.h:311:1: start of procedure get_bits1()
  309. }
  310. 
  311. static inline unsigned int get_bits1(GetBitContext *s){
       ^
  312. #ifdef ALT_BITSTREAM_READER
  313.     unsigned int index = s->index;

libavcodec/get_bits.h:313:5: 
  311. static inline unsigned int get_bits1(GetBitContext *s){
  312. #ifdef ALT_BITSTREAM_READER
  313.     unsigned int index = s->index;
           ^
  314.     uint8_t result = s->buffer[index>>3];
  315. #ifdef ALT_BITSTREAM_READER_LE

libavcodec/get_bits.h:314:5: 
  312. #ifdef ALT_BITSTREAM_READER
  313.     unsigned int index = s->index;
  314.     uint8_t result = s->buffer[index>>3];
           ^
  315. #ifdef ALT_BITSTREAM_READER_LE
  316.     result >>= index & 7;
