[FFmpeg-cvslog] tests/tiny_psnr: Print information about the supported sample types in the help and error texts

Michael Niedermayer git at videolan.org
Mon Mar 24 04:07:46 CET 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Mar 24 04:00:21 2014 +0100| [e03c3ac5390086412737df44398f72160e721bd6] | committer: Michael Niedermayer

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

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e03c3ac5390086412737df44398f72160e721bd6
---

 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 b4fc02c..6da177a 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;
     }



More information about the ffmpeg-cvslog mailing list