Commit e03c3ac5 authored by Michael Niedermayer's avatar Michael Niedermayer

tests/tiny_psnr: Print information about the supported sample types in the help and error texts

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 63dbba65
...@@ -287,14 +287,14 @@ int main(int argc, char *argv[]) ...@@ -287,14 +287,14 @@ int main(int argc, char *argv[])
char *end; char *end;
len = strtol(argv[3], &end, 0); len = strtol(argv[3], &end, 0);
if (*end || len < 1 || len > 2) { 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; return 1;
} }
} }
} }
if (argc < 3) { 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"); printf("WAV headers are skipped automatically.\n");
return 1; return 1;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment