diff options
Diffstat (limited to 'tests/tiny_psnr.c')
-rw-r--r-- | tests/tiny_psnr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/tiny_psnr.c b/tests/tiny_psnr.c index b912061310..264aa4d169 100644 --- a/tests/tiny_psnr.c +++ b/tests/tiny_psnr.c @@ -231,7 +231,7 @@ int main(int argc, char *argv[]) } else { char *end; len = strtol(argv[3], &end, 0); - if (*end || len > 2) { + if (*end || len < 1 || len > 2) { fprintf(stderr, "Unsupported sample format: %s\n", argv[3]); return 1; } |