ref: ac858f0a78d97a8cf4d4fb41d11d015fddb4024a
parent: 57f7c6f19144786c57d5cfc8e878765bd9944baf
parent: 9d8122dd72e05408cd438118419f47561855e6bc
author: Sai Deng <sdeng@google.com>
date: Tue Dec 18 19:40:49 EST 2018
Merge "Disallow the comparison between videos with different bit depth"
--- a/tools/tiny_ssim.c
+++ b/tools/tiny_ssim.c
@@ -629,6 +629,15 @@
goto clean_up;
}
+ if (in[0].bit_depth != in[1].bit_depth) {
+ fprintf(stderr,
+ "Failing: Image bit depths don't match or are unspecified!\n");
+ return_value = 1;
+ goto clean_up;
+ }
+
+ bit_depth = in[0].bit_depth;
+
// Number of frames to skip from file1.yuv for every frame used. Normal
// values 0, 1 and 3 correspond to TL2, TL1 and TL0 respectively for a 3TL
// encoding in mode 10. 7 would be reasonable for comparing TL0 of a 4-layer