diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-03-24 07:00:21 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-03-24 07:02:51 +0400 |
commit | e03c3ac5390086412737df44398f72160e721bd6 (patch) | |
tree | adf0bdffd40a675f4d0d7d775db41470964587b7 /tests/tiny_psnr.c | |
parent | 63dbba655e7b09bd5bd09d3a8eab270152bb803f (diff) |
tests/tiny_psnr: Print information about the supported sample types in the help and error texts
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'tests/tiny_psnr.c')
-rw-r--r-- | tests/tiny_psnr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/tiny_psnr.c b/tests/tiny_psnr.c index b4fc02cf9a..6da177ab9e 100644 --- a/tests/tiny_psnr.c +++ b/tests/tiny_psnr.c @@ -287,14 +287,14 @@ int main(int argc, char *argv[]) char *end; len = strtol(argv[3], &end, 0); if (*end || len < 1 || len > 2) { - fprintf(stderr, "Unsupported sample format: %s\n", argv[3]); + fprintf(stderr, "Unsupported sample format: %s\nSupported: u8, s16, f32, f64\n", argv[3]); return 1; } } } if (argc < 3) { - printf("tiny_psnr <file1> <file2> [<elem size> [<shift> [<skip bytes> [<shift search range>]]]]\n"); + printf("tiny_psnr <file1> <file2> [<elem size>|u8|s16|f32|f64 [<shift> [<skip bytes> [<shift search range>]]]]\n"); printf("WAV headers are skipped automatically.\n"); return 1; } |