[FFmpeg-cvslog] avfilter/vf_nnedi: Fix use of uninitialized value
Andreas Rheinhardt
git at videolan.org
Wed Mar 10 22:02:45 EET 2021
ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at gmail.com> | Tue Mar 9 22:43:13 2021 +0100| [2ae73b74bbb41bf6a5fe4d2174eec29a68761166] | committer: Andreas Rheinhardt
avfilter/vf_nnedi: Fix use of uninitialized value
Fixes Coverity issue #1473546.
Reviewed-by: Paul B Mahol <onemda at gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2ae73b74bbb41bf6a5fe4d2174eec29a68761166
---
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.
More information about the ffmpeg-cvslog
mailing list