mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-08 06:09:50 +00: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:
parent
04fbab1477
commit
3acadc89f4
1 changed files with 3 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue