Re: [FFmpeg-devel] [PATCH 4/9] avfilter/vf_uspp: Fix potential leak of dict on error

2020-09-11 Thread Nicolas George
Andreas Rheinhardt (12020-09-10):
> Signed-off-by: Andreas Rheinhardt 
> ---
>  libavfilter/vf_uspp.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Looks ok.

Regards,

-- 
  Nicolas George


signature.asc
Description: PGP signature
___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

[FFmpeg-devel] [PATCH 4/9] avfilter/vf_uspp: Fix potential leak of dict on error

2020-09-10 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt 
---
 libavfilter/vf_uspp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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(, "no_bitstream", "1", 0);
 ret = avcodec_open2(avctx_enc, enc, );
+av_dict_free();
 if (ret < 0)
 return ret;
-av_dict_free();
 av_assert0(avctx_enc->codec);
 }
 
-- 
2.20.1

___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".