tests/tiny_ssim: more correct error message

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2014-05-05 19:00:14 +02:00
parent 2ded57216e
commit e77ffaa0ac
1 changed files with 1 additions and 1 deletions

View File

@ -198,7 +198,7 @@ int main(int argc, char* argv[])
sscanf(argv[3], "%dx%d", &w, &h); sscanf(argv[3], "%dx%d", &w, &h);
if (w<=0 || h<=0 || w*(int64_t)h >= INT_MAX/3 || 2LL*w+12 >= INT_MAX / sizeof(*temp)) { if (w<=0 || h<=0 || w*(int64_t)h >= INT_MAX/3 || 2LL*w+12 >= INT_MAX / sizeof(*temp)) {
fprintf(stderr, "Dimensions are too large\n"); fprintf(stderr, "Dimensions are too large, or invalid\n");
return -2; return -2;
} }