[FFmpeg-devel] [PATCH 8/8] avfilter/vf_nnedi: Fix use of uninitialized value
Andreas Rheinhardt
andreas.rheinhardt at gmail.com
Wed Mar 10 03:06:01 EET 2021
Fixes Coverity issue #1473546.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>
---
libavfilter/vf_nnedi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavfilter/vf_nnedi.c b/libavfilter/vf_nnedi.c
index 4229150668..b273c13944 100644
--- a/libavfilter/vf_nnedi.c
+++ b/libavfilter/vf_nnedi.c
@@ -903,7 +903,7 @@ static void subtract_mean_predictor(PredictorCoefficients *model)
double softmax_means[256]; // Average of individual softmax filters.
double elliott_means[256]; // Average of individual elliott filters.
- double mean_filter[48 * 6]; // Pointwise average of all softmax filters.
+ double mean_filter[48 * 6] = { 0 }; // Pointwise average of all softmax filters.
double mean_bias;
// Quality 1.
--
2.27.0
More information about the ffmpeg-devel
mailing list