1 --- a/libavfilter/af_aformat.c 2018-07-17 03:27:41.000000000 -0600
2 +++ b/libavfilter/af_aformat.c 2019-03-16 17:55:28.449442750 -0600
7 +#define DEL_FIELD(p,mem,fld) if( p->mem ) { av_freep(&p->mem->fld); av_freep(&p->mem); }
9 +static av_cold void uninit(AVFilterContext *ctx)
11 + AFormatContext *s = ctx->priv;
12 + DEL_FIELD(s, formats, formats);
13 + DEL_FIELD(s, sample_rates, formats);
14 + DEL_FIELD(s, channel_layouts, channel_layouts);
17 static int query_formats(AVFilterContext *ctx)
19 AFormatContext *s = ctx->priv;
22 .description = NULL_IF_CONFIG_SMALL("Convert the input audio to one of the specified formats."),
25 .query_formats = query_formats,
26 .priv_size = sizeof(AFormatContext),
27 .priv_class = &aformat_class,