From 3acadc89f495366a1c7de234b33df7464fd64acd Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sun, 12 Apr 2015 15:28:15 +0200 Subject: tests/tiny_psnr: Make the search range extend both sides from the specified shift value This is what one would expect from the help text Signed-off-by: Michael Niedermayer --- tests/tiny_psnr.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/tiny_psnr.c') 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; -- cgit v1.2.3