libavcodec/ra144.c:314: error: Null Dereference
  pointer `&gb->buffer` last assigned on line 311 could be null and is dereferenced by call to `get_bits()` at line 314, column 38.

libavcodec/ra144.c:288:1: start of procedure ra144_decode_frame()
286. 
287. /** Uncompress one block (20 bytes -> 160*2 bytes) */
288. static int ra144_decode_frame(AVCodecContext * avctx, void *vdata,
     ^
289.                               int *data_size, const uint8_t *buf, int buf_size)
290. {

libavcodec/ra144.c:291:5: 
289.                               int *data_size, const uint8_t *buf, int buf_size)
290. {
291.     static const uint8_t sizes[10] = {6, 5, 5, 4, 4, 3, 3, 3, 3, 2};
         ^
292.     unsigned int refl_rms[4];    // RMS of the reflection coefficients
293.     uint16_t block_coefs[4][30]; // LPC coefficients of each sub-block

libavcodec/ra144.c:296:5: 
294.     unsigned int lpc_refl[10];   // LPC reflection coefficients of the frame
295.     int i, j;
296.     int16_t *data = vdata;
         ^
297.     unsigned int energy;
298. 

libavcodec/ra144.c:299:5: 
297.     unsigned int energy;
298. 
299.     RA144Context *ractx = avctx->priv_data;
         ^
300.     GetBitContext gb;
301. 

libavcodec/ra144.c:302:9: Taking false branch
300.     GetBitContext gb;
301. 
302.     if (*data_size < 2*160)
             ^
303.         return -1;
304. 

libavcodec/ra144.c:305:8: Taking false branch
303.         return -1;
304. 
305.     if(buf_size < 20) {
            ^
306.         av_log(avctx, AV_LOG_ERROR,
307.                "Frame too small (%d bytes). Truncated file?\n", buf_size);

libavcodec/ra144.c:311:5: 
309.         return buf_size;
310.     }
311.     init_get_bits(&gb, buf, 20 * 8);
         ^
312. 
313.     for (i=0; i<10; i++)

libavcodec/bitstream.h:719:1: start of procedure init_get_bits()
  717.  * @param bit_size the size of the buffer in bits
  718.  */
  719. static inline void init_get_bits(GetBitContext *s,
       ^
  720.                    const uint8_t *buffer, int bit_size)
  721. {

libavcodec/bitstream.h:722:5: 
  720.                    const uint8_t *buffer, int bit_size)
  721. {
  722.     int buffer_size= (bit_size+7)>>3;
           ^
  723.     if(buffer_size < 0 || bit_size < 0) {
  724.         buffer_size = bit_size = 0;

libavcodec/bitstream.h:723:8: Taking true branch
  721. {
  722.     int buffer_size= (bit_size+7)>>3;
  723.     if(buffer_size < 0 || bit_size < 0) {
              ^
  724.         buffer_size = bit_size = 0;
  725.         buffer = NULL;

libavcodec/bitstream.h:724:9: 
  722.     int buffer_size= (bit_size+7)>>3;
  723.     if(buffer_size < 0 || bit_size < 0) {
  724.         buffer_size = bit_size = 0;
               ^
  725.         buffer = NULL;
  726.     }

libavcodec/bitstream.h:725:9: 
  723.     if(buffer_size < 0 || bit_size < 0) {
  724.         buffer_size = bit_size = 0;
  725.         buffer = NULL;
               ^
  726.     }
  727. 

libavcodec/bitstream.h:728:5: 
  726.     }
  727. 
  728.     s->buffer= buffer;
           ^
  729.     s->size_in_bits= bit_size;
  730.     s->buffer_end= buffer + buffer_size;

libavcodec/bitstream.h:729:5: 
  727. 
  728.     s->buffer= buffer;
  729.     s->size_in_bits= bit_size;
           ^
  730.     s->buffer_end= buffer + buffer_size;
  731. #ifdef ALT_BITSTREAM_READER

libavcodec/bitstream.h:730:5: 
  728.     s->buffer= buffer;
  729.     s->size_in_bits= bit_size;
  730.     s->buffer_end= buffer + buffer_size;
           ^
  731. #ifdef ALT_BITSTREAM_READER
  732.     s->index=0;

libavcodec/bitstream.h:732:5: 
  730.     s->buffer_end= buffer + buffer_size;
  731. #ifdef ALT_BITSTREAM_READER
  732.     s->index=0;
           ^
  733. #elif defined LIBMPEG2_BITSTREAM_READER
  734.     s->buffer_ptr = (uint8_t*)((intptr_t)buffer&(~1));

libavcodec/bitstream.h:742:1: return from a call to init_get_bits
  740.     skip_bits_long(s, 0);
  741. #endif
  742. }
       ^
  743. 
  744. static inline void align_get_bits(GetBitContext *s)

libavcodec/ra144.c:313:10: 
311.     init_get_bits(&gb, buf, 20 * 8);
312. 
313.     for (i=0; i<10; i++)
              ^
314.         lpc_refl[i] = lpc_refl_cb[i][get_bits(&gb, sizes[i])];
315. 

libavcodec/ra144.c:313:15: Loop condition is true. Entering loop body
311.     init_get_bits(&gb, buf, 20 * 8);
312. 
313.     for (i=0; i<10; i++)
                   ^
314.         lpc_refl[i] = lpc_refl_cb[i][get_bits(&gb, sizes[i])];
315. 

libavcodec/ra144.c:314:9: 
312. 
313.     for (i=0; i<10; i++)
314.         lpc_refl[i] = lpc_refl_cb[i][get_bits(&gb, sizes[i])];
             ^
315. 
316.     eval_coefs(ractx->lpc_coef[0], lpc_refl);

libavcodec/bitstream.h:616:1: start of procedure get_bits()
  614.  * Note, the alt bitstream reader can read up to 25 bits, but the libmpeg2 reader can't
  615.  */
  616. static inline unsigned int get_bits(GetBitContext *s, int n){
       ^
  617.     register int tmp;
  618.     OPEN_READER(re, s)

libavcodec/bitstream.h:618:5: 
  616. static inline unsigned int get_bits(GetBitContext *s, int n){
  617.     register int tmp;
  618.     OPEN_READER(re, s)
           ^
  619.     UPDATE_CACHE(re, s)
  620.     tmp= SHOW_UBITS(re, s, n);

libavcodec/bitstream.h:619:5: 
  617.     register int tmp;
  618.     OPEN_READER(re, s)
  619.     UPDATE_CACHE(re, s)
           ^
  620.     tmp= SHOW_UBITS(re, s, n);
  621.     LAST_SKIP_BITS(re, s, n)
