libavcodec/adxenc.c:120: error: Null Dereference
  pointer `avctx->coded_frame` last assigned on line 119 could be null and is dereferenced at line 120, column 5.

libavcodec/adxenc.c:113:1: start of procedure adx_encode_init()
111. }
112. 
113. static av_cold int adx_encode_init(AVCodecContext *avctx)
     ^
114. {
115.     if (avctx->channels > 2)

libavcodec/adxenc.c:115:9: Taking false branch
113. static av_cold int adx_encode_init(AVCodecContext *avctx)
114. {
115.     if (avctx->channels > 2)
             ^
116.         return -1; /* only stereo or mono =) */
117.     avctx->frame_size = 32;

libavcodec/adxenc.c:117:5: 
115.     if (avctx->channels > 2)
116.         return -1; /* only stereo or mono =) */
117.     avctx->frame_size = 32;
         ^
118. 
119.     avctx->coded_frame= avcodec_alloc_frame();

libavcodec/adxenc.c:119:5: 
117.     avctx->frame_size = 32;
118. 
119.     avctx->coded_frame= avcodec_alloc_frame();
         ^
120.     avctx->coded_frame->key_frame= 1;
121. 

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/adxenc.c:120:5: 
118. 
119.     avctx->coded_frame= avcodec_alloc_frame();
120.     avctx->coded_frame->key_frame= 1;
         ^
121. 
122. //    avctx->bit_rate = avctx->sample_rate*avctx->channels*18*8/32;
