[FFmpeg-cvslog] tests/tiny_ssim: more correct error message
Michael Niedermayer
git at videolan.org
Mon May 5 20:11:08 CEST 2014
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon May 5 19:00:14 2014 +0200| [e77ffaa0ac2615400ffae1024e0325920f56d886] | committer: Michael Niedermayer
tests/tiny_ssim: more correct error message
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e77ffaa0ac2615400ffae1024e0325920f56d886
---
tests/tiny_ssim.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/tiny_ssim.c b/tests/tiny_ssim.c
index 767a0fe..9f355a3 100644
--- 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;
}
More information about the ffmpeg-cvslog
mailing list