]> git.sesse.net Git - ffmpeg/commitdiff
tests/tiny_psnr: Print information about the supported sample types in the help and...
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 24 Mar 2014 03:00:21 +0000 (04:00 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 24 Mar 2014 03:02:51 +0000 (04:02 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tests/tiny_psnr.c

index b4fc02cf9ac4022324fe53f65ae30999b1abfd7e..6da177ab9e4e39fb7808055c48759c643a6e66fe 100644 (file)
@@ -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;
     }