summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJingning Han <jingning@google.com>2018-10-02 10:21:43 -0700
committerJingning Han <jingning@google.com>2018-10-02 10:22:56 -0700
commit794b033f78b332b3935e4afd97f56940a3541953 (patch)
tree45653908450964ad15e7dc8c26d595e52a8d80e8 /tools
parent2beb5c9f91e7166c2c9d01c94bf84767815121e4 (diff)
downloadlibvpx-794b033f78b332b3935e4afd97f56940a3541953.tar
libvpx-794b033f78b332b3935e4afd97f56940a3541953.tar.gz
libvpx-794b033f78b332b3935e4afd97f56940a3541953.tar.bz2
libvpx-794b033f78b332b3935e4afd97f56940a3541953.zip
Minor clean-up in tiny_ssim.c
Report the correct filename in error message. Explicitly assign floating point value to double type. Change-Id: I42fd2da6e16b1e3e7ec221d5d562a728a93c0196
Diffstat (limited to 'tools')
-rw-r--r--tools/tiny_ssim.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/tiny_ssim.c b/tools/tiny_ssim.c
index 315d1c1f4..6f4b6d735 100644
--- a/tools/tiny_ssim.c
+++ b/tools/tiny_ssim.c
@@ -605,7 +605,7 @@ int main(int argc, char *argv[]) {
}
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 @@ int main(int argc, char *argv[]) {
}
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]);