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

libavcodec/smacker.c:580:1: start of procedure smka_decode_frame()
578.  * Decode Smacker audio data
579.  */
580. static int smka_decode_frame(AVCodecContext *avctx, void *data,
     ^
581.                              int *got_frame_ptr, AVPacket *avpkt)
582. {

libavcodec/smacker.c:583:5: 
581.                              int *got_frame_ptr, AVPacket *avpkt)
582. {
583.     SmackerAudioContext *s = avctx->priv_data;
         ^
584.     const uint8_t *buf = avpkt->data;
585.     int buf_size = avpkt->size;

libavcodec/smacker.c:584:5: 
582. {
583.     SmackerAudioContext *s = avctx->priv_data;
584.     const uint8_t *buf = avpkt->data;
         ^
585.     int buf_size = avpkt->size;
586.     GetBitContext gb;

libavcodec/smacker.c:585:5: 
583.     SmackerAudioContext *s = avctx->priv_data;
584.     const uint8_t *buf = avpkt->data;
585.     int buf_size = avpkt->size;
         ^
586.     GetBitContext gb;
587.     HuffContext h[4] = { { 0 } };

libavcodec/smacker.c:587:5: 
585.     int buf_size = avpkt->size;
586.     GetBitContext gb;
587.     HuffContext h[4] = { { 0 } };
         ^
588.     VLC vlc[4]       = { { 0 } };
589.     int16_t *samples;

libavcodec/smacker.c:588:5: 
586.     GetBitContext gb;
587.     HuffContext h[4] = { { 0 } };
588.     VLC vlc[4]       = { { 0 } };
         ^
589.     int16_t *samples;
590.     uint8_t *samples8;

libavcodec/smacker.c:595:5: 
593.     int unp_size;
594.     int bits, stereo;
595.     int pred[2] = {0, 0};
         ^
596. 
597.     if (buf_size <= 4) {

libavcodec/smacker.c:597:9: Taking false branch
595.     int pred[2] = {0, 0};
596. 
597.     if (buf_size <= 4) {
             ^
598.         av_log(avctx, AV_LOG_ERROR, "packet is too small\n");
599.         return AVERROR(EINVAL);

libavcodec/smacker.c:602:5: 
600.     }
601. 
602.     unp_size = AV_RL32(buf);
         ^
603. 
604.     init_get_bits(&gb, buf + 4, (buf_size - 4) * 8);

libavutil/ppc/intreadwrite.h:44:1: start of procedure AV_RL32()
  42. 
  43. #define AV_RL32 AV_RL32
  44. static av_always_inline uint32_t AV_RL32(const void *p)
      ^
  45. {
  46.     uint32_t v;

libavutil/ppc/intreadwrite.h:47:5: Skipping __infer_skip_gcc_asm_stmt(): function or method not found
  45. {
  46.     uint32_t v;
  47.     __asm__ ("lwbrx   %0, %y1" : "=r"(v) : "Z"(*(const uint32_t*)p));
          ^
  48.     return v;
  49. }

libavutil/ppc/intreadwrite.h:48:5: 
  46.     uint32_t v;
  47.     __asm__ ("lwbrx   %0, %y1" : "=r"(v) : "Z"(*(const uint32_t*)p));
  48.     return v;
          ^
  49. }
  50. 

libavutil/ppc/intreadwrite.h:49:1: return from a call to AV_RL32
  47.     __asm__ ("lwbrx   %0, %y1" : "=r"(v) : "Z"(*(const uint32_t*)p));
  48.     return v;
  49. }
      ^
  50. 
  51. #define AV_WL32 AV_WL32

libavcodec/smacker.c:604:5: 
602.     unp_size = AV_RL32(buf);
603. 
604.     init_get_bits(&gb, buf + 4, (buf_size - 4) * 8);
         ^
605. 
606.     if(!get_bits1(&gb)){

libavcodec/get_bits.h:352:1: start of procedure init_get_bits()
  350.  * @param bit_size the size of the buffer in bits
  351.  */
  352. static inline void init_get_bits(GetBitContext *s, const uint8_t *buffer,
       ^
  353.                                  int bit_size)
  354. {

libavcodec/get_bits.h:355:5: 
  353.                                  int bit_size)
  354. {
  355.     int buffer_size = (bit_size+7)>>3;
           ^
  356.     if (buffer_size < 0 || bit_size < 0) {
  357.         buffer_size = bit_size = 0;

libavcodec/get_bits.h:356:9: Taking true branch
  354. {
  355.     int buffer_size = (bit_size+7)>>3;
  356.     if (buffer_size < 0 || bit_size < 0) {
               ^
  357.         buffer_size = bit_size = 0;
  358.         buffer = NULL;

libavcodec/get_bits.h:357:9: 
  355.     int buffer_size = (bit_size+7)>>3;
  356.     if (buffer_size < 0 || bit_size < 0) {
  357.         buffer_size = bit_size = 0;
               ^
  358.         buffer = NULL;
  359.     }

libavcodec/get_bits.h:358:9: 
  356.     if (buffer_size < 0 || bit_size < 0) {
  357.         buffer_size = bit_size = 0;
  358.         buffer = NULL;
               ^
  359.     }
  360. 

libavcodec/get_bits.h:361:5: 
  359.     }
  360. 
  361.     s->buffer       = buffer;
           ^
  362.     s->size_in_bits = bit_size;
  363. #if !UNCHECKED_BITSTREAM_READER

libavcodec/get_bits.h:362:5: 
  360. 
  361.     s->buffer       = buffer;
  362.     s->size_in_bits = bit_size;
           ^
  363. #if !UNCHECKED_BITSTREAM_READER
  364.     s->size_in_bits_plus8 = bit_size + 8;

libavcodec/get_bits.h:364:5: 
  362.     s->size_in_bits = bit_size;
  363. #if !UNCHECKED_BITSTREAM_READER
  364.     s->size_in_bits_plus8 = bit_size + 8;
           ^
  365. #endif
  366.     s->buffer_end   = buffer + buffer_size;

libavcodec/get_bits.h:366:5: 
  364.     s->size_in_bits_plus8 = bit_size + 8;
  365. #endif
  366.     s->buffer_end   = buffer + buffer_size;
           ^
  367.     s->index        = 0;
  368. }

libavcodec/get_bits.h:367:5: 
  365. #endif
  366.     s->buffer_end   = buffer + buffer_size;
  367.     s->index        = 0;
           ^
  368. }
  369. 

libavcodec/get_bits.h:368:1: return from a call to init_get_bits
  366.     s->buffer_end   = buffer + buffer_size;
  367.     s->index        = 0;
  368. }
       ^
  369. 
  370. static inline void align_get_bits(GetBitContext *s)

libavcodec/smacker.c:606:9: 
604.     init_get_bits(&gb, buf + 4, (buf_size - 4) * 8);
605. 
606.     if(!get_bits1(&gb)){
             ^
607.         av_log(avctx, AV_LOG_INFO, "Sound: no data\n");
608.         *got_frame_ptr = 0;

libavcodec/get_bits.h:268:1: start of procedure get_bits1()
  266. }
  267. 
  268. static inline unsigned int get_bits1(GetBitContext *s)
       ^
  269. {
  270.     unsigned int index = s->index;

libavcodec/get_bits.h:270:5: 
  268. static inline unsigned int get_bits1(GetBitContext *s)
  269. {
  270.     unsigned int index = s->index;
           ^
  271.     uint8_t result = s->buffer[index>>3];
  272. #ifdef BITSTREAM_READER_LE

libavcodec/get_bits.h:271:5: 
  269. {
  270.     unsigned int index = s->index;
  271.     uint8_t result = s->buffer[index>>3];
           ^
  272. #ifdef BITSTREAM_READER_LE
  273.     result >>= index & 7;
