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

libavcodec/adxenc.c:122:1: start of procedure adx_encode_init()
120. }
121. 
122. static av_cold int adx_encode_init(AVCodecContext *avctx)
     ^
123. {
124.     ADXContext *c = avctx->priv_data;

libavcodec/adxenc.c:124:5: 
122. static av_cold int adx_encode_init(AVCodecContext *avctx)
123. {
124.     ADXContext *c = avctx->priv_data;
         ^
125. 
126.     if (avctx->channels > 2)

libavcodec/adxenc.c:126:9: Taking false branch
124.     ADXContext *c = avctx->priv_data;
125. 
126.     if (avctx->channels > 2)
             ^
127.         return -1; /* only stereo or mono =) */
128.     avctx->frame_size = 32;

libavcodec/adxenc.c:128:5: 
126.     if (avctx->channels > 2)
127.         return -1; /* only stereo or mono =) */
128.     avctx->frame_size = 32;
         ^
129. 
130.     avctx->coded_frame= avcodec_alloc_frame();

libavcodec/adxenc.c:130:5: 
128.     avctx->frame_size = 32;
129. 
130.     avctx->coded_frame= avcodec_alloc_frame();
         ^
131.     avctx->coded_frame->key_frame= 1;
132. 

libavcodec/utils.c:475:1: start of procedure avcodec_alloc_frame()
  473. }
  474. 
  475. AVFrame *avcodec_alloc_frame(void){
       ^
  476.     AVFrame *pic= av_malloc(sizeof(AVFrame));
  477. 

libavcodec/utils.c:476:5: 
  474. 
  475. AVFrame *avcodec_alloc_frame(void){
  476.     AVFrame *pic= av_malloc(sizeof(AVFrame));
           ^
  477. 
  478.     if(pic==NULL) return NULL;

libavutil/mem.c:64:1: start of procedure av_malloc()
    62.    linker will do it automatically. */
    63. 
    64. void *av_malloc(size_t size)
        ^
    65. {
    66.     void *ptr = NULL;

libavutil/mem.c:66:5: 
    64. void *av_malloc(size_t size)
    65. {
    66.     void *ptr = NULL;
            ^
    67. #if CONFIG_MEMALIGN_HACK
    68.     long diff;

libavutil/mem.c:72:8: Taking false branch
    70. 
    71.     /* let's disallow possible ambiguous cases */
    72.     if(size > (INT_MAX-32) )
               ^
    73.         return NULL;
    74. 

libavutil/mem.c:83:9: Taking false branch
    81.     ((char*)ptr)[-1]= diff;
    82. #elif HAVE_POSIX_MEMALIGN
    83.     if (posix_memalign(&ptr,32,size))
                ^
    84.         ptr = NULL;
    85. #elif HAVE_MEMALIGN

libavutil/mem.c:114:5: 
    112.     ptr = malloc(size);
    113. #endif
    114.     return ptr;
             ^
    115. }
    116. 

libavutil/mem.c:115:1: return from a call to av_malloc
    113. #endif
    114.     return ptr;
    115. }
         ^
    116. 
    117. void *av_realloc(void *ptr, size_t size)

libavcodec/utils.c:478:8: Taking true branch
  476.     AVFrame *pic= av_malloc(sizeof(AVFrame));
  477. 
  478.     if(pic==NULL) return NULL;
              ^
  479. 
  480.     avcodec_get_frame_defaults(pic);

libavcodec/utils.c:478:19: 
  476.     AVFrame *pic= av_malloc(sizeof(AVFrame));
  477. 
  478.     if(pic==NULL) return NULL;
                         ^
  479. 
  480.     avcodec_get_frame_defaults(pic);

libavcodec/utils.c:483:1: return from a call to avcodec_alloc_frame
  481. 
  482.     return pic;
  483. }
       ^
  484. 
  485. #if FF_API_AVCODEC_OPEN

libavcodec/adxenc.c:131:5: 
129. 
130.     avctx->coded_frame= avcodec_alloc_frame();
131.     avctx->coded_frame->key_frame= 1;
         ^
132. 
133. //    avctx->bit_rate = avctx->sample_rate*avctx->channels*18*8/32;
