libavcodec/wmavoice.c:1207: error: Null Dereference
  pointer `gb->buffer` last assigned on line 1200 could be null and is dereferenced by call to `get_bits1()` at line 1207, column 10.

libavcodec/wmavoice.c:1192:1: start of procedure check_bits_for_superframe()
1190.  * @returns -1 if unsupported, 1 on not enough bits or 0 if OK.
1191.  */
1192. static int check_bits_for_superframe(GetBitContext *orig_gb,
      ^
1193.                                      WMAVoiceContext *s)
1194. {

libavcodec/wmavoice.c:1195:5: 
1193.                                      WMAVoiceContext *s)
1194. {
1195.     GetBitContext s_gb, *gb = &s_gb;
          ^
1196.     int n, need_bits, bd_idx;
1197.     const struct frame_type_desc *frame_desc;

libavcodec/wmavoice.c:1200:5: 
1198. 
1199.     /* initialize a copy */
1200.     init_get_bits(gb, orig_gb->buffer, orig_gb->size_in_bits);
          ^
1201.     skip_bits_long(gb, get_bits_count(orig_gb));
1202.     assert(get_bits_left(gb) == get_bits_left(orig_gb));

libavcodec/get_bits.h:494:1: start of procedure init_get_bits()
  492.  * responsible for checking for the buffer end yourself (take advantage of the padding)!
  493.  */
  494. static inline void init_get_bits(GetBitContext *s,
       ^
  495.                    const uint8_t *buffer, int bit_size)
  496. {

libavcodec/get_bits.h:497:5: 
  495.                    const uint8_t *buffer, int bit_size)
  496. {
  497.     int buffer_size= (bit_size+7)>>3;
           ^
  498.     if(buffer_size < 0 || bit_size < 0) {
  499.         buffer_size = bit_size = 0;

libavcodec/get_bits.h:498:8: Taking true branch
  496. {
  497.     int buffer_size= (bit_size+7)>>3;
  498.     if(buffer_size < 0 || bit_size < 0) {
              ^
  499.         buffer_size = bit_size = 0;
  500.         buffer = NULL;

libavcodec/get_bits.h:499:9: 
  497.     int buffer_size= (bit_size+7)>>3;
  498.     if(buffer_size < 0 || bit_size < 0) {
  499.         buffer_size = bit_size = 0;
               ^
  500.         buffer = NULL;
  501.     }

libavcodec/get_bits.h:500:9: 
  498.     if(buffer_size < 0 || bit_size < 0) {
  499.         buffer_size = bit_size = 0;
  500.         buffer = NULL;
               ^
  501.     }
  502. 

libavcodec/get_bits.h:503:5: 
  501.     }
  502. 
  503.     s->buffer= buffer;
           ^
  504.     s->size_in_bits= bit_size;
  505.     s->buffer_end= buffer + buffer_size;

libavcodec/get_bits.h:504:5: 
  502. 
  503.     s->buffer= buffer;
  504.     s->size_in_bits= bit_size;
           ^
  505.     s->buffer_end= buffer + buffer_size;
  506. #ifdef ALT_BITSTREAM_READER

libavcodec/get_bits.h:505:5: 
  503.     s->buffer= buffer;
  504.     s->size_in_bits= bit_size;
  505.     s->buffer_end= buffer + buffer_size;
           ^
  506. #ifdef ALT_BITSTREAM_READER
  507.     s->index=0;

libavcodec/get_bits.h:507:5: 
  505.     s->buffer_end= buffer + buffer_size;
  506. #ifdef ALT_BITSTREAM_READER
  507.     s->index=0;
           ^
  508. #elif defined LIBMPEG2_BITSTREAM_READER
  509.     s->buffer_ptr = (uint8_t*)((intptr_t)buffer&(~1));

libavcodec/get_bits.h:517:1: return from a call to init_get_bits
  515.     skip_bits_long(s, 0);
  516. #endif
  517. }
       ^
  518. 
  519. static inline void align_get_bits(GetBitContext *s)

libavcodec/wmavoice.c:1201:5: 
1199.     /* initialize a copy */
1200.     init_get_bits(gb, orig_gb->buffer, orig_gb->size_in_bits);
1201.     skip_bits_long(gb, get_bits_count(orig_gb));
          ^
1202.     assert(get_bits_left(gb) == get_bits_left(orig_gb));
1203. 

libavcodec/get_bits.h:205:1: start of procedure get_bits_count()
  203.         ((uint32_t)name##_cache)
  204. 
  205. static inline int get_bits_count(const GetBitContext *s){
       ^
  206.     return s->index;
  207. }

libavcodec/get_bits.h:206:5: 
  204. 
  205. static inline int get_bits_count(const GetBitContext *s){
  206.     return s->index;
           ^
  207. }
  208. 

libavcodec/get_bits.h:207:1: return from a call to get_bits_count
  205. static inline int get_bits_count(const GetBitContext *s){
  206.     return s->index;
  207. }
       ^
  208. 
  209. static inline void skip_bits_long(GetBitContext *s, int n){

libavcodec/get_bits.h:209:1: start of procedure skip_bits_long()
  207. }
  208. 
  209. static inline void skip_bits_long(GetBitContext *s, int n){
       ^
  210.     s->index += n;
  211. }

libavcodec/get_bits.h:210:5: 
  208. 
  209. static inline void skip_bits_long(GetBitContext *s, int n){
  210.     s->index += n;
           ^
  211. }
  212. 

libavcodec/get_bits.h:211:1: return from a call to skip_bits_long
  209. static inline void skip_bits_long(GetBitContext *s, int n){
  210.     s->index += n;
  211. }
       ^
  212. 
  213. #elif defined LIBMPEG2_BITSTREAM_READER

libavcodec/wmavoice.c:1202:5: 
1200.     init_get_bits(gb, orig_gb->buffer, orig_gb->size_in_bits);
1201.     skip_bits_long(gb, get_bits_count(orig_gb));
1202.     assert(get_bits_left(gb) == get_bits_left(orig_gb));
          ^
1203. 
1204.     /* superframe header */

libavcodec/wmavoice.c:1205:9: 
1203. 
1204.     /* superframe header */
1205.     if (get_bits_left(gb) < 14)
              ^
1206.         return 1;
1207.     if (!get_bits1(gb))

libavcodec/get_bits.h:707:1: start of procedure get_bits_left()
  705. }
  706. 
  707. static inline int get_bits_left(GetBitContext *gb)
       ^
  708. {
  709.     return gb->size_in_bits - get_bits_count(gb);

libavcodec/get_bits.h:709:5: 
  707. static inline int get_bits_left(GetBitContext *gb)
  708. {
  709.     return gb->size_in_bits - get_bits_count(gb);
           ^
  710. }
  711. 

libavcodec/get_bits.h:205:1: start of procedure get_bits_count()
    203.         ((uint32_t)name##_cache)
    204. 
    205. static inline int get_bits_count(const GetBitContext *s){
         ^
    206.     return s->index;
    207. }

libavcodec/get_bits.h:206:5: 
    204. 
    205. static inline int get_bits_count(const GetBitContext *s){
    206.     return s->index;
             ^
    207. }
    208. 

libavcodec/get_bits.h:207:1: return from a call to get_bits_count
    205. static inline int get_bits_count(const GetBitContext *s){
    206.     return s->index;
    207. }
         ^
    208. 
    209. static inline void skip_bits_long(GetBitContext *s, int n){

libavcodec/get_bits.h:710:1: return from a call to get_bits_left
  708. {
  709.     return gb->size_in_bits - get_bits_count(gb);
  710. }
       ^
  711. 
  712. #endif /* AVCODEC_GET_BITS_H */

libavcodec/wmavoice.c:1205:9: Taking false branch
1203. 
1204.     /* superframe header */
1205.     if (get_bits_left(gb) < 14)
              ^
1206.         return 1;
1207.     if (!get_bits1(gb))

libavcodec/wmavoice.c:1207:10: 
1205.     if (get_bits_left(gb) < 14)
1206.         return 1;
1207.     if (!get_bits1(gb))
               ^
1208.         return -1;                        // WMAPro-in-WMAVoice superframe
1209.     if (get_bits1(gb)) skip_bits(gb, 12); // number of  samples in superframe

libavcodec/get_bits.h:414:1: start of procedure get_bits1()
  412. }
  413. 
  414. static inline unsigned int get_bits1(GetBitContext *s){
       ^
  415. #ifdef ALT_BITSTREAM_READER
  416.     unsigned int index= s->index;

libavcodec/get_bits.h:416:5: 
  414. static inline unsigned int get_bits1(GetBitContext *s){
  415. #ifdef ALT_BITSTREAM_READER
  416.     unsigned int index= s->index;
           ^
  417.     uint8_t result= s->buffer[ index>>3 ];
  418. #ifdef ALT_BITSTREAM_READER_LE

libavcodec/get_bits.h:417:5: 
  415. #ifdef ALT_BITSTREAM_READER
  416.     unsigned int index= s->index;
  417.     uint8_t result= s->buffer[ index>>3 ];
           ^
  418. #ifdef ALT_BITSTREAM_READER_LE
  419.     result>>= (index&0x07);
