libavcodec/vorbis_enc.c:962: error: Null Dereference
  pointer `avccontext->coded_frame` last assigned on line 961 could be null and is dereferenced at line 962, column 5.

libavcodec/vorbis_enc.c:940:1: start of procedure vorbis_encode_init()
938. }
939. 
940. static av_cold int vorbis_encode_init(AVCodecContext *avccontext)
     ^
941. {
942.     vorbis_enc_context *venc = avccontext->priv_data;

libavcodec/vorbis_enc.c:942:5: 
940. static av_cold int vorbis_encode_init(AVCodecContext *avccontext)
941. {
942.     vorbis_enc_context *venc = avccontext->priv_data;
         ^
943. 
944.     if (avccontext->channels != 2) {

libavcodec/vorbis_enc.c:944:9: Taking false branch
942.     vorbis_enc_context *venc = avccontext->priv_data;
943. 
944.     if (avccontext->channels != 2) {
             ^
945.         av_log(avccontext, AV_LOG_ERROR, "Current FFmpeg Vorbis encoder only supports 2 channels.\n");
946.         return -1;

libavcodec/vorbis_enc.c:949:5: Skipping create_vorbis_context(): empty list of specs
947.     }
948. 
949.     create_vorbis_context(venc, avccontext);
         ^
950. 
951.     if (avccontext->flags & CODEC_FLAG_QSCALE)

libavcodec/vorbis_enc.c:951:9: Taking true branch
949.     create_vorbis_context(venc, avccontext);
950. 
951.     if (avccontext->flags & CODEC_FLAG_QSCALE)
             ^
952.         venc->quality = avccontext->global_quality / (float)FF_QP2LAMBDA / 10.;
953.     else

libavcodec/vorbis_enc.c:952:9: 
950. 
951.     if (avccontext->flags & CODEC_FLAG_QSCALE)
952.         venc->quality = avccontext->global_quality / (float)FF_QP2LAMBDA / 10.;
             ^
953.     else
954.         venc->quality = 1.;

libavcodec/vorbis_enc.c:955:5: 
953.     else
954.         venc->quality = 1.;
955.     venc->quality *= venc->quality;
         ^
956. 
957.     avccontext->extradata_size = put_main_header(venc, (uint8_t**)&avccontext->extradata);

libavcodec/vorbis_enc.c:957:5: Skipping put_main_header(): empty list of specs
955.     venc->quality *= venc->quality;
956. 
957.     avccontext->extradata_size = put_main_header(venc, (uint8_t**)&avccontext->extradata);
         ^
958. 
959.     avccontext->frame_size     = 1 << (venc->log2_blocksize[0] - 1);

libavcodec/vorbis_enc.c:959:5: 
957.     avccontext->extradata_size = put_main_header(venc, (uint8_t**)&avccontext->extradata);
958. 
959.     avccontext->frame_size     = 1 << (venc->log2_blocksize[0] - 1);
         ^
960. 
961.     avccontext->coded_frame            = avcodec_alloc_frame();

libavcodec/vorbis_enc.c:961:5: 
959.     avccontext->frame_size     = 1 << (venc->log2_blocksize[0] - 1);
960. 
961.     avccontext->coded_frame            = avcodec_alloc_frame();
         ^
962.     avccontext->coded_frame->key_frame = 1;
963. 

libavcodec/utils.c:430:1: start of procedure avcodec_alloc_frame()
  428. }
  429. 
  430. AVFrame *avcodec_alloc_frame(void){
       ^
  431.     AVFrame *pic= av_malloc(sizeof(AVFrame));
  432. 

libavcodec/utils.c:431:5: 
  429. 
  430. AVFrame *avcodec_alloc_frame(void){
  431.     AVFrame *pic= av_malloc(sizeof(AVFrame));
           ^
  432. 
  433.     if(pic==NULL) return NULL;

libavutil/mem.c:47:1: start of procedure av_malloc()
    45.    linker will do it automatically. */
    46. 
    47. void *av_malloc(unsigned int size)
        ^
    48. {
    49.     void *ptr = NULL;

libavutil/mem.c:49:5: 
    47. void *av_malloc(unsigned int size)
    48. {
    49.     void *ptr = NULL;
            ^
    50. #if CONFIG_MEMALIGN_HACK
    51.     long diff;

libavutil/mem.c:55:8: Taking false branch
    53. 
    54.     /* let's disallow possible ambiguous cases */
    55.     if(size > (INT_MAX-16) )
               ^
    56.         return NULL;
    57. 

libavutil/mem.c:66:9: Taking false branch
    64.     ((char*)ptr)[-1]= diff;
    65. #elif HAVE_POSIX_MEMALIGN
    66.     if (posix_memalign(&ptr,16,size))
                ^
    67.         ptr = NULL;
    68. #elif HAVE_MEMALIGN

libavutil/mem.c:99:5: 
     97.     ptr = malloc(size);
     98. #endif
     99.     return ptr;
             ^
    100. }
    101. 

libavutil/mem.c:100:1: return from a call to av_malloc
     98. #endif
     99.     return ptr;
    100. }
         ^
    101. 
    102. void *av_realloc(void *ptr, unsigned int size)

libavcodec/utils.c:433:8: Taking true branch
  431.     AVFrame *pic= av_malloc(sizeof(AVFrame));
  432. 
  433.     if(pic==NULL) return NULL;
              ^
  434. 
  435.     avcodec_get_frame_defaults(pic);

libavcodec/utils.c:433:19: 
  431.     AVFrame *pic= av_malloc(sizeof(AVFrame));
  432. 
  433.     if(pic==NULL) return NULL;
                         ^
  434. 
  435.     avcodec_get_frame_defaults(pic);

libavcodec/utils.c:438:1: return from a call to avcodec_alloc_frame
  436. 
  437.     return pic;
  438. }
       ^
  439. 
  440. int attribute_align_arg avcodec_open(AVCodecContext *avctx, AVCodec *codec)

libavcodec/vorbis_enc.c:962:5: 
960. 
961.     avccontext->coded_frame            = avcodec_alloc_frame();
962.     avccontext->coded_frame->key_frame = 1;
         ^
963. 
964.     return 0;
