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

libavfilter/formats.c:389:1: start of procedure ff_set_common_formats()
387.  * freed.
388.  */
389. void ff_set_common_formats(AVFilterContext *ctx, AVFilterFormats *formats)
     ^
390. {
391.     SET_COMMON_FORMATS(ctx, formats, in_formats, out_formats,

libavfilter/formats.c:391:5: Loop condition is true. Entering loop body
389. void ff_set_common_formats(AVFilterContext *ctx, AVFilterFormats *formats)
390. {
391.     SET_COMMON_FORMATS(ctx, formats, in_formats, out_formats,
         ^
392.                        ff_formats_ref, formats);
393. }

libavfilter/formats.c:391:5: Taking true branch
389. void ff_set_common_formats(AVFilterContext *ctx, AVFilterFormats *formats)
390. {
391.     SET_COMMON_FORMATS(ctx, formats, in_formats, out_formats,
         ^
392.                        ff_formats_ref, formats);
393. }

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:107:1: start of procedure av_realloc()
    105. }
    106. 
    107. void *av_realloc(void *ptr, size_t size)
         ^
    108. {
    109.     /* let's disallow possibly ambiguous cases */

libavutil/mem.c:110:9: Taking false branch
    108. {
    109.     /* let's disallow possibly ambiguous cases */
    110.     if (size > (INT_MAX - 16))
                 ^
    111.         return NULL;
    112. 

libavutil/mem.c:116:5: 
    114.     return _aligned_realloc(ptr, size, 32);
    115. #else
    116.     return realloc(ptr, size);
             ^
    117. #endif
    118. }

libavutil/mem.c:118:1: return from a call to av_realloc
    116.     return realloc(ptr, size);
    117. #endif
    118. }
         ^
    119. 
    120. 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:391:5: Loop condition is true. Entering loop body
389. void ff_set_common_formats(AVFilterContext *ctx, AVFilterFormats *formats)
390. {
391.     SET_COMMON_FORMATS(ctx, formats, in_formats, out_formats,
         ^
392.                        ff_formats_ref, formats);
393. }

libavfilter/formats.c:391:5: Taking true branch
389. void ff_set_common_formats(AVFilterContext *ctx, AVFilterFormats *formats)
390. {
391.     SET_COMMON_FORMATS(ctx, formats, in_formats, out_formats,
         ^
392.                        ff_formats_ref, formats);
393. }

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:107:1: start of procedure av_realloc()
    105. }
    106. 
    107. void *av_realloc(void *ptr, size_t size)
         ^
    108. {
    109.     /* let's disallow possibly ambiguous cases */

libavutil/mem.c:110:9: Taking true branch
    108. {
    109.     /* let's disallow possibly ambiguous cases */
    110.     if (size > (INT_MAX - 16))
                 ^
    111.         return NULL;
    112. 

libavutil/mem.c:111:9: 
    109.     /* let's disallow possibly ambiguous cases */
    110.     if (size > (INT_MAX - 16))
    111.         return NULL;
                 ^
    112. 
    113. #if HAVE_ALIGNED_MALLOC

libavutil/mem.c:118:1: return from a call to av_realloc
    116.     return realloc(ptr, size);
    117. #endif
    118. }
         ^
    119. 
    120. 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)            \
