avconv.c:3518: error: Null Dereference
  pointer `ic` last assigned on line 3516 could be null and is dereferenced at line 3518, column 5.

avconv.c:3513:1: start of procedure read_avserver_streams()
3511. }
3512. 
3513. static int read_avserver_streams(OptionsContext *o, AVFormatContext *s, const char *filename)
      ^
3514. {
3515.     int i, err;

avconv.c:3516:5: 
3514. {
3515.     int i, err;
3516.     AVFormatContext *ic = avformat_alloc_context();
          ^
3517. 
3518.     ic->interrupt_callback = int_cb;

libavformat/options.c:141:1: start of procedure avformat_alloc_context()
  139. }
  140. 
  141. AVFormatContext *avformat_alloc_context(void)
       ^
  142. {
  143.     AVFormatContext *ic;

libavformat/options.c:144:5: 
  142. {
  143.     AVFormatContext *ic;
  144.     ic = av_malloc(sizeof(AVFormatContext));
           ^
  145.     if (!ic) return ic;
  146.     avformat_get_context_defaults(ic);

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)

libavformat/options.c:145:10: Taking true branch
  143.     AVFormatContext *ic;
  144.     ic = av_malloc(sizeof(AVFormatContext));
  145.     if (!ic) return ic;
                ^
  146.     avformat_get_context_defaults(ic);
  147.     return ic;

libavformat/options.c:145:14: 
  143.     AVFormatContext *ic;
  144.     ic = av_malloc(sizeof(AVFormatContext));
  145.     if (!ic) return ic;
                    ^
  146.     avformat_get_context_defaults(ic);
  147.     return ic;

libavformat/options.c:148:1: return from a call to avformat_alloc_context
  146.     avformat_get_context_defaults(ic);
  147.     return ic;
  148. }
       ^
  149. 
  150. const AVClass *avformat_get_class(void)

avconv.c:3518:5: 
3516.     AVFormatContext *ic = avformat_alloc_context();
3517. 
3518.     ic->interrupt_callback = int_cb;
          ^
3519.     err = avformat_open_input(&ic, filename, NULL, NULL);
3520.     if (err < 0)
