From a770ba7526844f395b08625480befad83b8fcadf Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sat, 19 Jan 2013 23:59:27 +0100 Subject: [PATCH] Set pixel_data[] to NULL in YCbCrInput as well. Like the previous one, mainly for cleaner crashes. Again, found by Coverity Scan. --- ycbcr_input.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ycbcr_input.cpp b/ycbcr_input.cpp index 958b916..098b574 100644 --- a/ycbcr_input.cpp +++ b/ycbcr_input.cpp @@ -79,6 +79,8 @@ YCbCrInput::YCbCrInput(const ImageFormat &image_format, heights[1] = height / ycbcr_format.chroma_subsampling_y; heights[2] = height / ycbcr_format.chroma_subsampling_y; + pixel_data[0] = pixel_data[1] = pixel_data[2] = NULL; + register_int("needs_mipmaps", &needs_mipmaps); } -- 2.39.2