mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-11 17:55:21 +00:00
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>
This commit is contained in:
parent
98171d14c5
commit
8443848dfc
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user