You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avfilter/af_hdcd: Fix leak of memory allocated by ff_make_format_list()
Fixes CID1396265 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
@@ -1635,13 +1635,11 @@ static int query_formats(AVFilterContext *ctx)
|
|||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
in_formats = ff_make_format_list(sample_fmts_in);
|
in_formats = ff_make_format_list(sample_fmts_in);
|
||||||
out_formats = ff_make_format_list(sample_fmts_out);
|
|
||||||
if (!in_formats || !out_formats)
|
|
||||||
return AVERROR(ENOMEM);
|
|
||||||
|
|
||||||
ret = ff_formats_ref(in_formats, &inlink->out_formats);
|
ret = ff_formats_ref(in_formats, &inlink->out_formats);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
|
out_formats = ff_make_format_list(sample_fmts_out);
|
||||||
ret = ff_formats_ref(out_formats, &outlink->in_formats);
|
ret = ff_formats_ref(out_formats, &outlink->in_formats);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
return ret;
|
return ret;
|
||||||
|
Reference in New Issue
Block a user