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

libavfilter/formats.c:257:1: start of procedure ff_channel_layouts_ref()
255. } while (0)
256. 
257. void ff_channel_layouts_ref(AVFilterChannelLayouts *f, AVFilterChannelLayouts **ref)
     ^
258. {
259.     FORMATS_REF(f, ref);

libavfilter/formats.c:259:5: 
257. void ff_channel_layouts_ref(AVFilterChannelLayouts *f, AVFilterChannelLayouts **ref)
258. {
259.     FORMATS_REF(f, ref);
         ^
260. }
261. 

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:9: Taking false branch
  124. 
  125.     /* let's disallow possible ambiguous cases */
  126.     if (size > (INT_MAX - 16))
               ^
  127.         return NULL;
  128. 

libavutil/mem.c:138:5: 
  136.     return _aligned_realloc(ptr, size, 32);
  137. #else
  138.     return realloc(ptr, size);
           ^
  139. #endif
  140. }

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

libavfilter/formats.c:259:5: 
257. void ff_channel_layouts_ref(AVFilterChannelLayouts *f, AVFilterChannelLayouts **ref)
258. {
259.     FORMATS_REF(f, ref);
         ^
260. }
261. 

void ff_channel_layouts_ref(AVFilterChannelLayouts *f, AVFilterChannelLayouts **ref)
{
    FORMATS_REF(f, ref);
}
['void ff_channel_layouts_ref(AVFilterChannelLayouts *f, AVFilterChannelLayouts **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)\n        return av_malloc(size);\n    diff = ((char *)ptr)[-1];\n    return (char *)realloc((char *)ptr - diff, size + diff) + diff;\n#elif HAVE_ALIGNED_MALLOC\n    return _aligned_realloc(ptr, size, 32);\n#else\n    return realloc(ptr, size);\n#endif\n}']