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 <michaelni@gmx.at>
pull/133/head
Michael Niedermayer 10 years ago
parent 04fbab1477
commit 3acadc89f4
  1. 3
      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;

Loading…
Cancel
Save