diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-04-12 15:28:15 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-04-17 21:22:27 +0200 |
commit | 3acadc89f495366a1c7de234b33df7464fd64acd (patch) | |
tree | 81c7fb0ad5fc85f1456775c4f91be1ed9d8ed3c7 /tests/tiny_psnr.c | |
parent | 04fbab1477455993e80f0f189c13595ef4e0277c (diff) | |
download | ffmpeg-3acadc89f495366a1c7de234b33df7464fd64acd.tar.gz |
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>
Diffstat (limited to 'tests/tiny_psnr.c')
-rw-r--r-- | tests/tiny_psnr.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; |