]> git.sesse.net Git - movit/commitdiff
Set pixel_data[] to NULL in YCbCrInput as well.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 19 Jan 2013 22:59:27 +0000 (23:59 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 19 Jan 2013 22:59:27 +0000 (23:59 +0100)
Like the previous one, mainly for cleaner crashes.
Again, found by Coverity Scan.

ycbcr_input.cpp

index 958b9167f2ede78eba5b543f9eae54053d908de5..098b574b1f8f0b79204c90dbaa55ca148a085294 100644 (file)
@@ -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);
 }