shithub: libvpx

Download patch

ref: e196a6ae71507969c7bb2a048322f743e4a950fc
parent: b3a837cbf7f628ffe5637b153812e90317d5331d
author: Liu Peng <pengliu.mail@gmail.com>
date: Fri Sep 14 11:04:16 EDT 2018

fix a bug of tiny_ssim when the bit depth is 8

Change-Id: I2563e661c71b474fe04b70cd9b713d478a27ac5f

--- a/tools/tiny_ssim.c
+++ b/tools/tiny_ssim.c
@@ -124,8 +124,8 @@
         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;
     }
   }