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

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

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

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

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

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