1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

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>
This commit is contained in:
Michael Niedermayer 2015-04-12 15:28:15 +02:00
parent 04fbab1477
commit 3acadc89f4

View File

@ -273,6 +273,9 @@ int main(int argc, char *argv[])
int max_psnr = -1; int max_psnr = -1;
int max_psnr_shift = 0; int max_psnr_shift = 0;
if (shift_last > shift_first)
shift_first -= shift_last - shift_first;
if (argc > 3) { if (argc > 3) {
if (!strcmp(argv[3], "u8")) { if (!strcmp(argv[3], "u8")) {
len = 1; len = 1;