libavfilter/formats.c:249: error: Null Dereference
  pointer `f->refs` last assigned on line 249 could be null and is dereferenced at line 249, column 5.

libavfilter/formats.c:247:1: start of procedure ff_formats_ref()
245. }
246. 
247. void ff_formats_ref(AVFilterFormats *f, AVFilterFormats **ref)
     ^
248. {
249.     FORMATS_REF(f, ref);

libavfilter/formats.c:249:5: 
247. void ff_formats_ref(AVFilterFormats *f, AVFilterFormats **ref)
248. {
249.     FORMATS_REF(f, ref);
         ^
250. }
251. 

libavutil/mem.c:119:1: start of procedure av_realloc()
  117. }
  118. 
  119. void *av_realloc(void *ptr, size_t size)
       ^
  120. {
  121. #if CONFIG_MEMALIGN_HACK

libavutil/mem.c:126:8: Taking false branch
  124. 
  125.     /* let's disallow possible ambiguous cases */
  126.     if(size > (INT_MAX-16) )
              ^
  127.         return NULL;
  128. 

libavutil/mem.c:135:5: 
  133.     return (char*)realloc((char*)ptr - diff, size + diff) + diff;
  134. #else
  135.     return realloc(ptr, size);
           ^
  136. #endif
  137. }

libavutil/mem.c:137:1: return from a call to av_realloc
  135.     return realloc(ptr, size);
  136. #endif
  137. }
       ^
  138. 
  139. void av_free(void *ptr)

libavfilter/formats.c:249:5: 
247. void ff_formats_ref(AVFilterFormats *f, AVFilterFormats **ref)
248. {
249.     FORMATS_REF(f, ref);
         ^
250. }
251. 

void ff_formats_ref(AVFilterFormats *f, AVFilterFormats **ref)
{
    FORMATS_REF(f, ref);
}
['void ff_formats_ref(AVFilterFormats *f, AVFilterFormats **ref)\n{\n    FORMATS_REF(f, ref);\n}', 'void *av_realloc(void *ptr, size_t size)\n{\n#if CONFIG_MEMALIGN_HACK\n    int diff;\n#endif\n    if(size > (INT_MAX-16) )\n        return NULL;\n#if CONFIG_MEMALIGN_HACK\n    if(!ptr) return av_malloc(size);\n    diff= ((char*)ptr)[-1];\n    return (char*)realloc((char*)ptr - diff, size + diff) + diff;\n#else\n    return realloc(ptr, size);\n#endif\n}']