lavc/qsv_overlay: suppress code scan complain
authorZhong Li <zhong.li@intel.com>
Thu, 24 May 2018 08:34:32 +0000 (16:34 +0800)
committerZhong Li <zhong.li@intel.com>
Tue, 6 Nov 2018 09:42:31 +0000 (17:42 +0800)
Suppress the complain "variables 'pix_fmt' is used but maybe
uninitialized".

Signed-off-by: Zhong Li <zhong.li@intel.com>
libavfilter/vf_overlay_qsv.c

index 2087178..9aabb59 100644 (file)
@@ -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;