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

libavcodec/vorbis_enc.c:894:1: start of procedure vorbis_encode_init()
892. }
893. 
894. static av_cold int vorbis_encode_init(AVCodecContext * avccontext)
     ^
895. {
896.     vorbis_enc_context * venc = avccontext->priv_data;

libavcodec/vorbis_enc.c:896:5: 
894. static av_cold int vorbis_encode_init(AVCodecContext * avccontext)
895. {
896.     vorbis_enc_context * venc = avccontext->priv_data;
         ^
897. 
898.     if (avccontext->channels != 2) {

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

libavcodec/vorbis_enc.c:903:5: Skipping create_vorbis_context(): empty list of specs
901.     }
902. 
903.     create_vorbis_context(venc, avccontext);
         ^
904. 
905.     if (avccontext->flags & CODEC_FLAG_QSCALE)

libavcodec/vorbis_enc.c:905:9: Taking true branch
903.     create_vorbis_context(venc, avccontext);
904. 
905.     if (avccontext->flags & CODEC_FLAG_QSCALE)
             ^
906.         venc->quality = avccontext->global_quality / (float)FF_QP2LAMBDA / 10.;
907.     else

libavcodec/vorbis_enc.c:906:9: 
904. 
905.     if (avccontext->flags & CODEC_FLAG_QSCALE)
906.         venc->quality = avccontext->global_quality / (float)FF_QP2LAMBDA / 10.;
             ^
907.     else
908.         venc->quality = 1.;

libavcodec/vorbis_enc.c:909:5: 
907.     else
908.         venc->quality = 1.;
909.     venc->quality *= venc->quality;
         ^
910. 
911.     avccontext->extradata_size = put_main_header(venc, (uint8_t**)&avccontext->extradata);

libavcodec/vorbis_enc.c:911:5: Skipping put_main_header(): empty list of specs
909.     venc->quality *= venc->quality;
910. 
911.     avccontext->extradata_size = put_main_header(venc, (uint8_t**)&avccontext->extradata);
         ^
912. 
913.     avccontext->frame_size = 1 << (venc->log2_blocksize[0] - 1);

libavcodec/vorbis_enc.c:913:5: 
911.     avccontext->extradata_size = put_main_header(venc, (uint8_t**)&avccontext->extradata);
912. 
913.     avccontext->frame_size = 1 << (venc->log2_blocksize[0] - 1);
         ^
914. 
915.     avccontext->coded_frame = avcodec_alloc_frame();

libavcodec/vorbis_enc.c:915:5: 
913.     avccontext->frame_size = 1 << (venc->log2_blocksize[0] - 1);
914. 
915.     avccontext->coded_frame = avcodec_alloc_frame();
         ^
916.     avccontext->coded_frame->key_frame = 1;
917. 

libavcodec/utils.c:405:1: start of procedure avcodec_alloc_frame()
  403. }
  404. 
  405. AVFrame *avcodec_alloc_frame(void){
       ^
  406.     AVFrame *pic= av_malloc(sizeof(AVFrame));
  407. 

libavcodec/utils.c:406:5: 
  404. 
  405. AVFrame *avcodec_alloc_frame(void){
  406.     AVFrame *pic= av_malloc(sizeof(AVFrame));
           ^
  407. 
  408.     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:5: Skipping posix_memalign(): method has no implementation
    64.     ((char*)ptr)[-1]= diff;
    65. #elif HAVE_POSIX_MEMALIGN
    66.     posix_memalign(&ptr,16,size);
            ^
    67. #elif HAVE_MEMALIGN
    68.     ptr = memalign(16,size);

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

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

libavcodec/utils.c:408:8: Taking true branch
  406.     AVFrame *pic= av_malloc(sizeof(AVFrame));
  407. 
  408.     if(pic==NULL) return NULL;
              ^
  409. 
  410.     avcodec_get_frame_defaults(pic);

libavcodec/utils.c:408:19: 
  406.     AVFrame *pic= av_malloc(sizeof(AVFrame));
  407. 
  408.     if(pic==NULL) return NULL;
                         ^
  409. 
  410.     avcodec_get_frame_defaults(pic);

libavcodec/utils.c:413:1: return from a call to avcodec_alloc_frame
  411. 
  412.     return pic;
  413. }
       ^
  414. 
  415. int attribute_align_arg avcodec_open(AVCodecContext *avctx, AVCodec *codec)

libavcodec/vorbis_enc.c:916:5: 
914. 
915.     avccontext->coded_frame = avcodec_alloc_frame();
916.     avccontext->coded_frame->key_frame = 1;
         ^
917. 
918.     return 0;
