avconv.c:2153: error: Null Dereference
  pointer `avc` last assigned on line 2148 could be null and is dereferenced at line 2153, column 9.

avconv.c:2144:1: start of procedure print_sdp()
2142. }
2143. 
2144. static void print_sdp(OutputFile *output_files, int n)
      ^
2145. {
2146.     char sdp[2048];

avconv.c:2148:5: 
2146.     char sdp[2048];
2147.     int i;
2148.     AVFormatContext **avc = av_malloc(sizeof(*avc) * n);
          ^
2149. 
2150.     if (!avc)

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 true branch
  70. 
  71.     /* let's disallow possible ambiguous cases */
  72.     if(size > (INT_MAX-32) )
             ^
  73.         return NULL;
  74. 

libavutil/mem.c:73:9: 
  71.     /* let's disallow possible ambiguous cases */
  72.     if(size > (INT_MAX-32) )
  73.         return NULL;
              ^
  74. 
  75. #if CONFIG_MEMALIGN_HACK

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)

avconv.c:2150:10: Taking true branch
2148.     AVFormatContext **avc = av_malloc(sizeof(*avc) * n);
2149. 
2150.     if (!avc)
               ^
2151.         exit_program(1);
2152.     for (i = 0; i < n; i++)

avconv.c:2151:9: Skipping exit_program(): empty list of specs
2149. 
2150.     if (!avc)
2151.         exit_program(1);
              ^
2152.     for (i = 0; i < n; i++)
2153.         avc[i] = output_files[i].ctx;

avconv.c:2152:10: 
2150.     if (!avc)
2151.         exit_program(1);
2152.     for (i = 0; i < n; i++)
               ^
2153.         avc[i] = output_files[i].ctx;
2154. 

avconv.c:2152:17: Loop condition is true. Entering loop body
2150.     if (!avc)
2151.         exit_program(1);
2152.     for (i = 0; i < n; i++)
                      ^
2153.         avc[i] = output_files[i].ctx;
2154. 

avconv.c:2153:9: 
2151.         exit_program(1);
2152.     for (i = 0; i < n; i++)
2153.         avc[i] = output_files[i].ctx;
              ^
2154. 
2155.     av_sdp_create(avc, n, sdp, sizeof(sdp));
