]> git.sesse.net Git - ffmpeg/blobdiff - tests/audiogen.c
Merge commit 'f5d2c597e99af218b0d4d1cf9737c7e68ee934e4'
[ffmpeg] / tests / audiogen.c
index 5818797a65ba98a2fea983e909a4128c8a53f1c1..07f0be32eb8db3e819869d75b4a9d90d94eafda1 100644 (file)
@@ -144,8 +144,8 @@ int main(int argc, char **argv)
     int nb_channels = 2;
     char *ext;
 
-    if (argc < 2 || argc > 4) {
-        printf("usage: %s file [<sample rate> [<channels>]]\n"
+    if (argc < 2 || argc > 5) {
+        printf("usage: %s file [<sample rate> [<channels>] [<random seed>]]\n"
                "generate a test raw 16 bit audio stream\n"
                "If the file extension is .wav a WAVE header will be added.\n"
                "default: 44100 Hz stereo\n", argv[0]);
@@ -168,6 +168,9 @@ int main(int argc, char **argv)
         }
     }
 
+    if (argc > 4)
+        seed = atoi(argv[4]);
+
     outfile = fopen(argv[1], "wb");
     if (!outfile) {
         perror(argv[1]);