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

libavfilter/vf_overlay.c:100:1: start of procedure query_formats()
 98. }
 99. 
100. static int query_formats(AVFilterContext *ctx)
     ^
101. {
102.     const enum AVPixelFormat inout_pix_fmts[] = { AV_PIX_FMT_YUV420P,  AV_PIX_FMT_NONE };

libavfilter/vf_overlay.c:102:5: 
100. static int query_formats(AVFilterContext *ctx)
101. {
102.     const enum AVPixelFormat inout_pix_fmts[] = { AV_PIX_FMT_YUV420P,  AV_PIX_FMT_NONE };
         ^
103.     const enum AVPixelFormat blend_pix_fmts[] = { AV_PIX_FMT_YUVA420P, AV_PIX_FMT_NONE };
104.     AVFilterFormats *inout_formats = ff_make_format_list(inout_pix_fmts);

libavfilter/vf_overlay.c:103:5: 
101. {
102.     const enum AVPixelFormat inout_pix_fmts[] = { AV_PIX_FMT_YUV420P,  AV_PIX_FMT_NONE };
103.     const enum AVPixelFormat blend_pix_fmts[] = { AV_PIX_FMT_YUVA420P, AV_PIX_FMT_NONE };
         ^
104.     AVFilterFormats *inout_formats = ff_make_format_list(inout_pix_fmts);
105.     AVFilterFormats *blend_formats = ff_make_format_list(blend_pix_fmts);

libavfilter/vf_overlay.c:104:5: Skipping ff_make_format_list(): empty list of specs
102.     const enum AVPixelFormat inout_pix_fmts[] = { AV_PIX_FMT_YUV420P,  AV_PIX_FMT_NONE };
103.     const enum AVPixelFormat blend_pix_fmts[] = { AV_PIX_FMT_YUVA420P, AV_PIX_FMT_NONE };
104.     AVFilterFormats *inout_formats = ff_make_format_list(inout_pix_fmts);
         ^
105.     AVFilterFormats *blend_formats = ff_make_format_list(blend_pix_fmts);
106. 

libavfilter/vf_overlay.c:105:5: Skipping ff_make_format_list(): empty list of specs
103.     const enum AVPixelFormat blend_pix_fmts[] = { AV_PIX_FMT_YUVA420P, AV_PIX_FMT_NONE };
104.     AVFilterFormats *inout_formats = ff_make_format_list(inout_pix_fmts);
105.     AVFilterFormats *blend_formats = ff_make_format_list(blend_pix_fmts);
         ^
106. 
107.     ff_formats_ref(inout_formats, &ctx->inputs [MAIN   ]->out_formats);

libavfilter/vf_overlay.c:107:5: 
105.     AVFilterFormats *blend_formats = ff_make_format_list(blend_pix_fmts);
106. 
107.     ff_formats_ref(inout_formats, &ctx->inputs [MAIN   ]->out_formats);
         ^
108.     ff_formats_ref(blend_formats, &ctx->inputs [OVERLAY]->out_formats);
109.     ff_formats_ref(inout_formats, &ctx->outputs[MAIN   ]->in_formats );

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

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

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:279:5: Taking false branch
  277. void ff_formats_ref(AVFilterFormats *f, AVFilterFormats **ref)
  278. {
  279.     FORMATS_REF(f, ref);
           ^
  280. }
  281. 

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

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

libavfilter/vf_overlay.c:108:5: 
106. 
107.     ff_formats_ref(inout_formats, &ctx->inputs [MAIN   ]->out_formats);
108.     ff_formats_ref(blend_formats, &ctx->inputs [OVERLAY]->out_formats);
         ^
109.     ff_formats_ref(inout_formats, &ctx->outputs[MAIN   ]->in_formats );
110. 

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

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

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:279:5: Taking false branch
  277. void ff_formats_ref(AVFilterFormats *f, AVFilterFormats **ref)
  278. {
  279.     FORMATS_REF(f, ref);
           ^
  280. }
  281. 

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

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

libavfilter/vf_overlay.c:109:5: 
107.     ff_formats_ref(inout_formats, &ctx->inputs [MAIN   ]->out_formats);
108.     ff_formats_ref(blend_formats, &ctx->inputs [OVERLAY]->out_formats);
109.     ff_formats_ref(inout_formats, &ctx->outputs[MAIN   ]->in_formats );
         ^
110. 
111.     return 0;

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

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

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:279:5: Taking true branch
  277. void ff_formats_ref(AVFilterFormats *f, AVFilterFormats **ref)
  278. {
  279.     FORMATS_REF(f, ref);
           ^
  280. }
  281. 

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