shithub: libvpx

Download patch

ref: d3d30fde9369b05f3ae92ffeda4d52638b208c1f
parent: 77e389dca4bb26e4e66cb665c9183aef7f02f7d7
parent: 794b033f78b332b3935e4afd97f56940a3541953
author: Jingning Han <jingning@google.com>
date: Tue Oct 2 17:16:35 EDT 2018

Merge "Minor clean-up in tiny_ssim.c"

--- a/tools/tiny_ssim.c
+++ b/tools/tiny_ssim.c
@@ -605,7 +605,7 @@
   }
 
   if (open_input_file(argv[1], &in[0], w, h, bit_depth) < 0) {
-    fprintf(stderr, "File %s can't be opened or parsed!\n", argv[2]);
+    fprintf(stderr, "File %s can't be opened or parsed!\n", argv[1]);
     goto clean_up;
   }
 
@@ -617,7 +617,7 @@
   }
   if (bit_depth == 10) peak = 1023.0;
 
-  if (bit_depth == 12) peak = 4095;
+  if (bit_depth == 12) peak = 4095.0;
 
   if (open_input_file(argv[2], &in[1], w, h, bit_depth) < 0) {
     fprintf(stderr, "File %s can't be opened or parsed!\n", argv[2]);