diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-10-16 14:04:14 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-10-16 14:04:14 +0200 |
commit | 83962004f7275a4ea98ca02398ae5dfff59e5fb7 (patch) | |
tree | 38ba41a2750d220f95a58b7b3ca6cb540e7fddf5 /tests/tiny_psnr.c | |
parent | 5717562c789f9be9c8e4bab7caec4df83f77cebe (diff) | |
parent | 3dc06b6972cf389269e9c36ff0a4373f80f7149b (diff) | |
download | ffmpeg-83962004f7275a4ea98ca02398ae5dfff59e5fb7.tar.gz |
Merge commit '3dc06b6972cf389269e9c36ff0a4373f80f7149b'
* commit '3dc06b6972cf389269e9c36ff0a4373f80f7149b':
tiny_psnr: check for specified sample size less than 1
fate: improve md5sum utility selection
rangecoder-test: Drop timer output that clutters stderr
Conflicts:
tests/tiny_psnr.c
Merged-by: Michael Niedermayer <michaelni@gmx.at>
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; } |