From e03c3ac5390086412737df44398f72160e721bd6 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Mon, 24 Mar 2014 04:00:21 +0100 Subject: [PATCH] tests/tiny_psnr: Print information about the supported sample types in the help and error texts Signed-off-by: Michael Niedermayer --- tests/tiny_psnr.c | 4 ++-- 1 file 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 [ [ [ []]]]\n"); + printf("tiny_psnr [|u8|s16|f32|f64 [ [ []]]]\n"); printf("WAV headers are skipped automatically.\n"); return 1; }