diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-09-10 16:57:13 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-09-11 14:41:08 +0200 |
commit | 8443848dfc632334439d4eae7e446167682a4ddb (patch) | |
tree | 3671f0db7a8b0d5325bd149389c8230f1765ca5f /libavfilter/vf_uspp.c | |
parent | 98171d14c5914933f19e244370f18321261e8b9f (diff) | |
download | ffmpeg-8443848dfc632334439d4eae7e446167682a4ddb.tar.gz |
avfilter/vf_uspp: Fix potential leak of dict on error
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavfilter/vf_uspp.c')
-rw-r--r-- | libavfilter/vf_uspp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_uspp.c b/libavfilter/vf_uspp.c index f6fb193433..72a0f562af 100644 --- a/libavfilter/vf_uspp.c +++ b/libavfilter/vf_uspp.c @@ -362,9 +362,9 @@ static int config_input(AVFilterLink *inlink) avctx_enc->global_quality = 123; av_dict_set(&opts, "no_bitstream", "1", 0); ret = avcodec_open2(avctx_enc, enc, &opts); + av_dict_free(&opts); if (ret < 0) return ret; - av_dict_free(&opts); av_assert0(avctx_enc->codec); } |