Browse Source

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>
tags/n2.7
Michael Niedermayer 10 years ago
parent
commit
3acadc89f4
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      tests/tiny_psnr.c

+ 3
- 0
tests/tiny_psnr.c View File

@@ -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