From ad075847303b075816fe4f7cbfbf8dcc19e068bc Mon Sep 17 00:00:00 2001 From: Surma Date: Tue, 5 Jan 2021 14:50:08 +0000 Subject: [PATCH] Update codecs/resize/src/lib.rs Co-authored-by: Ingvar Stepanyan --- codecs/resize/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codecs/resize/src/lib.rs b/codecs/resize/src/lib.rs index ef9b051e..798e34dc 100644 --- a/codecs/resize/src/lib.rs +++ b/codecs/resize/src/lib.rs @@ -77,7 +77,7 @@ pub fn resize( let num_input_pixels = input_width * input_height; let num_output_pixels = output_width * output_height; - let mut output_image: Vec = vec_with_len(num_output_pixels * 4, 0); + let mut output_image = vec![0u8; num_output_pixels * 4]; // If both options are false, there is no preprocessing on the pixel values // and we can skip the loop.