]> git.sesse.net Git - ffmpeg/blobdiff - tests/videogen.c
Build extradata in adpcm_ms encoder.
[ffmpeg] / tests / videogen.c
index 55b7f2813e8dbc89cc4e5741f5c8d7c4e3fa16c5..4238e3f862d4ca6152a57208e1c75498550469b0 100644 (file)
@@ -222,7 +222,7 @@ static void gen_image(int num, int w, int h)
     for(y=0;y<h;y++) {
         for(x=0;x<w;x++) {
             x1 = (x << FRAC_BITS) + dx;
-            y1 = (y << FRAC_BITS) + dx;
+            y1 = (y << FRAC_BITS) + dy;
             r = ((y1 * 7) >> FRAC_BITS) & 0xff;
             g = (((x1 + y1) * 9) >> FRAC_BITS) & 0xff;
             b = ((x1 * 5) >> FRAC_BITS) & 0xff;
@@ -273,11 +273,6 @@ int main(int argc, char **argv)
         exit(1);
     }
 
-#if 0
-    for(i=0;i<256;i++)
-        printf("cos(%d)=%d\n", i, int_cos(i));
-#endif
-
     w = DEFAULT_WIDTH;
     h = DEFAULT_HEIGHT;