aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-03-24 04:00:21 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-03-24 04:02:51 +0100
commite03c3ac5390086412737df44398f72160e721bd6 (patch)
treeadf0bdffd40a675f4d0d7d775db41470964587b7
parent63dbba655e7b09bd5bd09d3a8eab270152bb803f (diff)
downloadffmpeg-e03c3ac5390086412737df44398f72160e721bd6.tar.gz
tests/tiny_psnr: Print information about the supported sample types in the help and error texts
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--tests/tiny_psnr.c4
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;
}