diff mbox series

[FFmpeg-devel,8/8] avfilter/vf_nnedi: Fix use of uninitialized value

Message ID 20210310010601.1142819-8-andreas.rheinhardt@gmail.com
State Accepted
Commit 2ae73b74bbb41bf6a5fe4d2174eec29a68761166
Headers show
Series [FFmpeg-devel,1/8] avcodec/cbs: Remove redundant checks for CodedBitstreamContext.codec | expand

Checks

Context Check Description
andriy/x86_make success Make finished
andriy/x86_make_fate success Make fate finished
andriy/PPC64_make success Make finished
andriy/PPC64_make_fate success Make fate finished

Commit Message

Andreas Rheinhardt March 10, 2021, 1:06 a.m. UTC
Fixes Coverity issue #1473546.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
---
 libavfilter/vf_nnedi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Paul B Mahol March 10, 2021, 10:04 a.m. UTC | #1
lgtm

On Wed, Mar 10, 2021 at 2:06 AM Andreas Rheinhardt <
andreas.rheinhardt@gmail.com> wrote:

> Fixes Coverity issue #1473546.
>
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@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
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
diff mbox series

Patch

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.