diff options
Diffstat (limited to 'tests/tiny_psnr.c')
-rw-r--r-- | tests/tiny_psnr.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/tiny_psnr.c b/tests/tiny_psnr.c index b35ed810fe..e09f394f0e 100644 --- a/tests/tiny_psnr.c +++ b/tests/tiny_psnr.c @@ -273,6 +273,9 @@ int main(int argc, char *argv[]) int max_psnr = -1; int max_psnr_shift = 0; + if (shift_last > shift_first) + shift_first -= shift_last - shift_first; + if (argc > 3) { if (!strcmp(argv[3], "u8")) { len = 1; |