Commit 3acadc89 authored by Michael Niedermayer's avatar Michael Niedermayer

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: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 04fbab14
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment