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

libavcodec/vorbis_enc.c:935:1: start of procedure vorbis_encode_init()
933. }
934. 
935. static av_cold int vorbis_encode_init(AVCodecContext * avccontext)
     ^
936. {
937.     venc_context_t * venc = avccontext->priv_data;

libavcodec/vorbis_enc.c:937:5: 
935. static av_cold int vorbis_encode_init(AVCodecContext * avccontext)
936. {
937.     venc_context_t * venc = avccontext->priv_data;
         ^
938. 
939.     if (avccontext->channels != 2) {

libavcodec/vorbis_enc.c:939:9: Taking false branch
937.     venc_context_t * venc = avccontext->priv_data;
938. 
939.     if (avccontext->channels != 2) {
             ^
940.         av_log(avccontext, AV_LOG_ERROR, "Current FFmpeg Vorbis encoder only supports 2 channels.\n");
941.         return -1;

libavcodec/vorbis_enc.c:944:5: Skipping create_vorbis_context(): empty list of specs
942.     }
943. 
944.     create_vorbis_context(venc, avccontext);
         ^
945. 
946.     if (avccontext->flags & CODEC_FLAG_QSCALE)

libavcodec/vorbis_enc.c:946:9: Taking true branch
944.     create_vorbis_context(venc, avccontext);
945. 
946.     if (avccontext->flags & CODEC_FLAG_QSCALE)
             ^
947.         venc->quality = avccontext->global_quality / (float)FF_QP2LAMBDA / 10.;
948.     else

libavcodec/vorbis_enc.c:947:9: 
945. 
946.     if (avccontext->flags & CODEC_FLAG_QSCALE)
947.         venc->quality = avccontext->global_quality / (float)FF_QP2LAMBDA / 10.;
             ^
948.     else
949.         venc->quality = 1.;

libavcodec/vorbis_enc.c:950:5: 
948.     else
949.         venc->quality = 1.;
950.     venc->quality *= venc->quality;
         ^
951. 
952.     avccontext->extradata_size = put_main_header(venc, (uint8_t**)&avccontext->extradata);

libavcodec/vorbis_enc.c:952:5: Skipping put_main_header(): empty list of specs
950.     venc->quality *= venc->quality;
951. 
952.     avccontext->extradata_size = put_main_header(venc, (uint8_t**)&avccontext->extradata);
         ^
953. 
954.     avccontext->frame_size = 1 << (venc->log2_blocksize[0] - 1);

libavcodec/vorbis_enc.c:954:5: 
952.     avccontext->extradata_size = put_main_header(venc, (uint8_t**)&avccontext->extradata);
953. 
954.     avccontext->frame_size = 1 << (venc->log2_blocksize[0] - 1);
         ^
955. 
956.     avccontext->coded_frame = avcodec_alloc_frame();

libavcodec/vorbis_enc.c:956:5: 
954.     avccontext->frame_size = 1 << (venc->log2_blocksize[0] - 1);
955. 
956.     avccontext->coded_frame = avcodec_alloc_frame();
         ^
957.     avccontext->coded_frame->key_frame = 1;
958. 

libavcodec/utils.c:831:1: start of procedure avcodec_alloc_frame()
  829. }
  830. 
  831. AVFrame *avcodec_alloc_frame(void){
       ^
  832.     AVFrame *pic= av_malloc(sizeof(AVFrame));
  833. 

libavcodec/utils.c:832:5: 
  830. 
  831. AVFrame *avcodec_alloc_frame(void){
  832.     AVFrame *pic= av_malloc(sizeof(AVFrame));
           ^
  833. 
  834.     if(pic==NULL) return NULL;

libavutil/mem.c:42:1: start of procedure av_malloc()
    40.    linker will do it automatically */
    41. 
    42. void *av_malloc(unsigned int size)
        ^
    43. {
    44.     void *ptr;

libavutil/mem.c:50:8: Taking false branch
    48. 
    49.     /* let's disallow possible ambiguous cases */
    50.     if(size > (INT_MAX-16) )
               ^
    51.         return NULL;
    52. 

libavutil/mem.c:61:5: Skipping memalign(): method has no implementation
    59.     ((char*)ptr)[-1]= diff;
    60. #elif defined (HAVE_MEMALIGN)
    61.     ptr = memalign(16,size);
            ^
    62.     /* Why 64?
    63.        Indeed, we should align it:

libavutil/mem.c:91:5: 
    89.     ptr = malloc(size);
    90. #endif
    91.     return ptr;
            ^
    92. }
    93. 

libavutil/mem.c:92:1: return from a call to av_malloc
    90. #endif
    91.     return ptr;
    92. }
        ^
    93. 
    94. void *av_realloc(void *ptr, unsigned int size)

libavcodec/utils.c:834:8: Taking true branch
  832.     AVFrame *pic= av_malloc(sizeof(AVFrame));
  833. 
  834.     if(pic==NULL) return NULL;
              ^
  835. 
  836.     avcodec_get_frame_defaults(pic);

libavcodec/utils.c:834:19: 
  832.     AVFrame *pic= av_malloc(sizeof(AVFrame));
  833. 
  834.     if(pic==NULL) return NULL;
                         ^
  835. 
  836.     avcodec_get_frame_defaults(pic);

libavcodec/utils.c:839:1: return from a call to avcodec_alloc_frame
  837. 
  838.     return pic;
  839. }
       ^
  840. 
  841. int attribute_align_arg avcodec_open(AVCodecContext *avctx, AVCodec *codec)

libavcodec/vorbis_enc.c:957:5: 
955. 
956.     avccontext->coded_frame = avcodec_alloc_frame();
957.     avccontext->coded_frame->key_frame = 1;
         ^
958. 
959.     return 0;
