From d96ae9d5ea1f47a437fc0663b0cc26ff5d4d5d31 Mon Sep 17 00:00:00 2001 From: Zhong Li Date: Thu, 24 May 2018 16:34:32 +0800 Subject: [PATCH] lavc/qsv_overlay: suppress code scan complain Suppress the complain "variables 'pix_fmt' is used but maybe uninitialized". Signed-off-by: Zhong Li --- libavfilter/vf_overlay_qsv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/vf_overlay_qsv.c b/libavfilter/vf_overlay_qsv.c index 20871786ee..9aabb594ba 100644 --- a/libavfilter/vf_overlay_qsv.c +++ b/libavfilter/vf_overlay_qsv.c @@ -160,7 +160,7 @@ release: static int have_alpha_planar(AVFilterLink *link) { - enum AVPixelFormat pix_fmt; + enum AVPixelFormat pix_fmt = link->format; const AVPixFmtDescriptor *desc; AVHWFramesContext *fctx;