From: Liu Peng Date: Fri, 14 Sep 2018 20:04:16 +0000 (-0500) Subject: fix a bug of tiny_ssim when the bit depth is 8 X-Git-Tag: v1.8.0~329 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e196a6ae71507969c7bb2a048322f743e4a950fc;p=libvpx fix a bug of tiny_ssim when the bit depth is 8 Change-Id: I2563e661c71b474fe04b70cd9b713d478a27ac5f --- diff --git a/tools/tiny_ssim.c b/tools/tiny_ssim.c index 6c1d784d3..d6b213859 100644 --- a/tools/tiny_ssim.c +++ b/tools/tiny_ssim.c @@ -124,8 +124,8 @@ static int open_input_file(const char *file_name, input_file_t *input, int w, input->frame_size = w * h + ((w + 1) / 2 * (h + 1) / 2) * 2; if (bit_depth > 8) { input->frame_size *= 2; - input->buf = malloc(input->frame_size); } + input->buf = malloc(input->frame_size); break; } }