libavfilter/formats.c:380: error: Memory Leak
  memory dynamically allocated by call to `ff_formats_ref()` at line 380, column 5 is not reachable after line 380, column 5.

libavfilter/formats.c:377:1: start of procedure ff_set_common_samplerates()
375. }
376. 
377. void ff_set_common_samplerates(AVFilterContext *ctx,
     ^
378.                                AVFilterFormats *samplerates)
379. {

libavfilter/formats.c:380:5: Loop condition is true. Entering loop body
378.                                AVFilterFormats *samplerates)
379. {
380.     SET_COMMON_FORMATS(ctx, samplerates, in_samplerates, out_samplerates,
         ^
381.                        ff_formats_ref, formats);
382. }

libavfilter/formats.c:380:5: Taking true branch
378.                                AVFilterFormats *samplerates)
379. {
380.     SET_COMMON_FORMATS(ctx, samplerates, in_samplerates, out_samplerates,
         ^
381.                        ff_formats_ref, formats);
382. }

libavfilter/formats.c:276:1: start of procedure ff_formats_ref()
  274. }
  275. 
  276. void ff_formats_ref(AVFilterFormats *f, AVFilterFormats **ref)
       ^
  277. {
  278.     FORMATS_REF(f, ref);

libavfilter/formats.c:278:5: 
  276. void ff_formats_ref(AVFilterFormats *f, AVFilterFormats **ref)
  277. {
  278.     FORMATS_REF(f, ref);
           ^
  279. }
  280. 

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

libavutil/mem.c:124:9: Taking false branch
    122. 
    123.     /* let's disallow possibly ambiguous cases */
    124.     if (size > (INT_MAX - 16))
                 ^
    125.         return NULL;
    126. 

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

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

libavfilter/formats.c:278:5: Taking false branch
  276. void ff_formats_ref(AVFilterFormats *f, AVFilterFormats **ref)
  277. {
  278.     FORMATS_REF(f, ref);
           ^
  279. }
  280. 

libavfilter/formats.c:278:5: Loop condition is false. Leaving loop
  276. void ff_formats_ref(AVFilterFormats *f, AVFilterFormats **ref)
  277. {
  278.     FORMATS_REF(f, ref);
           ^
  279. }
  280. 

libavfilter/formats.c:279:1: return from a call to ff_formats_ref
  277. {
  278.     FORMATS_REF(f, ref);
  279. }
       ^
  280. 
  281. #define FIND_REF_INDEX(ref, idx)            \

libavfilter/formats.c:380:5: Loop condition is true. Entering loop body
378.                                AVFilterFormats *samplerates)
379. {
380.     SET_COMMON_FORMATS(ctx, samplerates, in_samplerates, out_samplerates,
         ^
381.                        ff_formats_ref, formats);
382. }

libavfilter/formats.c:380:5: Taking true branch
378.                                AVFilterFormats *samplerates)
379. {
380.     SET_COMMON_FORMATS(ctx, samplerates, in_samplerates, out_samplerates,
         ^
381.                        ff_formats_ref, formats);
382. }

libavfilter/formats.c:276:1: start of procedure ff_formats_ref()
  274. }
  275. 
  276. void ff_formats_ref(AVFilterFormats *f, AVFilterFormats **ref)
       ^
  277. {
  278.     FORMATS_REF(f, ref);

libavfilter/formats.c:278:5: 
  276. void ff_formats_ref(AVFilterFormats *f, AVFilterFormats **ref)
  277. {
  278.     FORMATS_REF(f, ref);
           ^
  279. }
  280. 

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

libavutil/mem.c:124:9: Taking true branch
    122. 
    123.     /* let's disallow possibly ambiguous cases */
    124.     if (size > (INT_MAX - 16))
                 ^
    125.         return NULL;
    126. 

libavutil/mem.c:125:9: 
    123.     /* let's disallow possibly ambiguous cases */
    124.     if (size > (INT_MAX - 16))
    125.         return NULL;
                 ^
    126. 
    127. #if CONFIG_MEMALIGN_HACK

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

libavfilter/formats.c:278:5: Taking true branch
  276. void ff_formats_ref(AVFilterFormats *f, AVFilterFormats **ref)
  277. {
  278.     FORMATS_REF(f, ref);
           ^
  279. }
  280. 

libavfilter/formats.c:279:1: return from a call to ff_formats_ref
  277. {
  278.     FORMATS_REF(f, ref);
  279. }
       ^
  280. 
  281. #define FIND_REF_INDEX(ref, idx)            \
