projects
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2ded572
)
tests/tiny_ssim: more correct error message
author
Michael Niedermayer
<michaelni@gmx.at>
Mon, 5 May 2014 17:00:14 +0000
(19:00 +0200)
committer
Michael Niedermayer
<michaelni@gmx.at>
Mon, 5 May 2014 17:00:14 +0000
(19:00 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tests/tiny_ssim.c
patch
|
blob
|
history
diff --git
a/tests/tiny_ssim.c
b/tests/tiny_ssim.c
index 767a0fea068c84c958d26677349824084fece3aa..9f355a3d8216c6aa2ec5e9c80e74b60ab2b00ac5 100644
(file)
--- a/
tests/tiny_ssim.c
+++ b/
tests/tiny_ssim.c
@@
-198,7
+198,7
@@
int main(int argc, char* argv[])
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)) {
- fprintf(stderr, "Dimensions are too large\n");
+ fprintf(stderr, "Dimensions are too large
, or invalid
\n");
return -2;
}