]> git.sesse.net Git - ffmpeg/blobdiff - tests/audiogen.c
Move all internal -I parameters to the front of CFLAGS to avoid using external
[ffmpeg] / tests / audiogen.c
index 4913a6ced864201198d14f77a78dc4fdcb07860a..31c43714953a9c91fe8d1bc02fc0018a987a123a 100644 (file)
@@ -93,8 +93,8 @@ int main(int argc, char **argv)
                "generate a test raw 16 bit stereo audio stream\n", argv[0]);
         exit(1);
     }
-    
-    outfile = fopen(argv[1], "w");
+
+    outfile = fopen(argv[1], "wb");
     if (!outfile) {
         perror(argv[1]);
         return 1;
@@ -118,7 +118,7 @@ int main(int argc, char **argv)
         f = 100 + (((10000 - 100) * i) / FE);
         a += (f * FRAC_ONE) / FE;
     }
-    
+
     /* 0.5 second of low amplitude white noise */
     for(i=0;i<FE / 2;i++) {
         v = myrnd(&seed, 20000) - 10000;
@@ -147,7 +147,7 @@ int main(int argc, char **argv)
             taba[j] += (f * FRAC_ONE) / FE;
         }
     }
-    
+
     /* stereo 500 Hz with varying volume */
     a = 0;
     ampa = 0;