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>
(cherry picked from commit 8443848dfc)
This commit is contained in:
Andreas Rheinhardt 2020-09-10 16:57:13 +02:00
parent e434e13892
commit d0a8273efe

View File

@ -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);
}