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

libavcodec/vp3.c:1703:1: start of procedure vp3_decode_frame()
1701.  * This is the ffmpeg/libavcodec API frame decode function.
1702.  */
1703. static int vp3_decode_frame(AVCodecContext *avctx,
      ^
1704.                             void *data, int *data_size,
1705.                             AVPacket *avpkt)

libavcodec/vp3.c:1707:5: 
1705.                             AVPacket *avpkt)
1706. {
1707.     const uint8_t *buf = avpkt->data;
          ^
1708.     int buf_size = avpkt->size;
1709.     Vp3DecodeContext *s = avctx->priv_data;

libavcodec/vp3.c:1708:5: 
1706. {
1707.     const uint8_t *buf = avpkt->data;
1708.     int buf_size = avpkt->size;
          ^
1709.     Vp3DecodeContext *s = avctx->priv_data;
1710.     GetBitContext gb;

libavcodec/vp3.c:1709:5: 
1707.     const uint8_t *buf = avpkt->data;
1708.     int buf_size = avpkt->size;
1709.     Vp3DecodeContext *s = avctx->priv_data;
          ^
1710.     GetBitContext gb;
1711.     static int counter = 0;

libavcodec/vp3.c:1711:5: 
1709.     Vp3DecodeContext *s = avctx->priv_data;
1710.     GetBitContext gb;
1711.     static int counter = 0;
          ^
1712.     int i;
1713. 

libavcodec/vp3.c:1714:5: 
1712.     int i;
1713. 
1714.     init_get_bits(&gb, buf, buf_size * 8);
          ^
1715. 
1716.     if (s->theora && get_bits1(&gb))

libavcodec/get_bits.h:473:1: start of procedure init_get_bits()
  471.  * responsible for checking for the buffer end yourself (take advantage of the padding)!
  472.  */
  473. static inline void init_get_bits(GetBitContext *s,
       ^
  474.                    const uint8_t *buffer, int bit_size)
  475. {

libavcodec/get_bits.h:476:5: 
  474.                    const uint8_t *buffer, int bit_size)
  475. {
  476.     int buffer_size= (bit_size+7)>>3;
           ^
  477.     if(buffer_size < 0 || bit_size < 0) {
  478.         buffer_size = bit_size = 0;

libavcodec/get_bits.h:477:8: Taking true branch
  475. {
  476.     int buffer_size= (bit_size+7)>>3;
  477.     if(buffer_size < 0 || bit_size < 0) {
              ^
  478.         buffer_size = bit_size = 0;
  479.         buffer = NULL;

libavcodec/get_bits.h:478:9: 
  476.     int buffer_size= (bit_size+7)>>3;
  477.     if(buffer_size < 0 || bit_size < 0) {
  478.         buffer_size = bit_size = 0;
               ^
  479.         buffer = NULL;
  480.     }

libavcodec/get_bits.h:479:9: 
  477.     if(buffer_size < 0 || bit_size < 0) {
  478.         buffer_size = bit_size = 0;
  479.         buffer = NULL;
               ^
  480.     }
  481. 

libavcodec/get_bits.h:482:5: 
  480.     }
  481. 
  482.     s->buffer= buffer;
           ^
  483.     s->size_in_bits= bit_size;
  484.     s->buffer_end= buffer + buffer_size;

libavcodec/get_bits.h:483:5: 
  481. 
  482.     s->buffer= buffer;
  483.     s->size_in_bits= bit_size;
           ^
  484.     s->buffer_end= buffer + buffer_size;
  485. #ifdef ALT_BITSTREAM_READER

libavcodec/get_bits.h:484:5: 
  482.     s->buffer= buffer;
  483.     s->size_in_bits= bit_size;
  484.     s->buffer_end= buffer + buffer_size;
           ^
  485. #ifdef ALT_BITSTREAM_READER
  486.     s->index=0;

libavcodec/get_bits.h:486:5: 
  484.     s->buffer_end= buffer + buffer_size;
  485. #ifdef ALT_BITSTREAM_READER
  486.     s->index=0;
           ^
  487. #elif defined LIBMPEG2_BITSTREAM_READER
  488.     s->buffer_ptr = (uint8_t*)((intptr_t)buffer&(~1));

libavcodec/get_bits.h:496:1: return from a call to init_get_bits
  494.     skip_bits_long(s, 0);
  495. #endif
  496. }
       ^
  497. 
  498. static inline void align_get_bits(GetBitContext *s)

libavcodec/vp3.c:1716:9: Taking true branch
1714.     init_get_bits(&gb, buf, buf_size * 8);
1715. 
1716.     if (s->theora && get_bits1(&gb))
              ^
1717.     {
1718.         av_log(avctx, AV_LOG_ERROR, "Header packet passed to frame decoder, skipping\n");

libavcodec/vp3.c:1716:22: 
1714.     init_get_bits(&gb, buf, buf_size * 8);
1715. 
1716.     if (s->theora && get_bits1(&gb))
                           ^
1717.     {
1718.         av_log(avctx, AV_LOG_ERROR, "Header packet passed to frame decoder, skipping\n");

libavcodec/get_bits.h:393:1: start of procedure get_bits1()
  391. }
  392. 
  393. static inline unsigned int get_bits1(GetBitContext *s){
       ^
  394. #ifdef ALT_BITSTREAM_READER
  395.     unsigned int index= s->index;

libavcodec/get_bits.h:395:5: 
  393. static inline unsigned int get_bits1(GetBitContext *s){
  394. #ifdef ALT_BITSTREAM_READER
  395.     unsigned int index= s->index;
           ^
  396.     uint8_t result= s->buffer[ index>>3 ];
  397. #ifdef ALT_BITSTREAM_READER_LE

libavcodec/get_bits.h:396:5: 
  394. #ifdef ALT_BITSTREAM_READER
  395.     unsigned int index= s->index;
  396.     uint8_t result= s->buffer[ index>>3 ];
           ^
  397. #ifdef ALT_BITSTREAM_READER_LE
  398.     result>>= (index&0x07);
