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

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

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

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

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

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

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

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

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

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

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

libavcodec/utils.c:796:1: start of procedure avcodec_alloc_frame()
  794. }
  795. 
  796. AVFrame *avcodec_alloc_frame(void){
       ^
  797.     AVFrame *pic= av_malloc(sizeof(AVFrame));
  798. 

libavcodec/utils.c:797:5: 
  795. 
  796. AVFrame *avcodec_alloc_frame(void){
  797.     AVFrame *pic= av_malloc(sizeof(AVFrame));
           ^
  798. 
  799.     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:799:8: Taking true branch
  797.     AVFrame *pic= av_malloc(sizeof(AVFrame));
  798. 
  799.     if(pic==NULL) return NULL;
              ^
  800. 
  801.     avcodec_get_frame_defaults(pic);

libavcodec/utils.c:799:19: 
  797.     AVFrame *pic= av_malloc(sizeof(AVFrame));
  798. 
  799.     if(pic==NULL) return NULL;
                         ^
  800. 
  801.     avcodec_get_frame_defaults(pic);

libavcodec/utils.c:804:1: return from a call to avcodec_alloc_frame
  802. 
  803.     return pic;
  804. }
       ^
  805. 
  806. int attribute_align_arg avcodec_open(AVCodecContext *avctx, AVCodec *codec)

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