Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/videogen.c')
-rw-r--r--tests/videogen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/videogen.c b/tests/videogen.c
index 55b7f2813e..5990dd7d48 100644
--- a/tests/videogen.c
+++ b/tests/videogen.c
@@ -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;