aboutsummaryrefslogtreecommitdiff
path: root/tests/rotozoom.c
diff options
context:
space:
mode:
authorCarl Eugen Hoyos2009-07-22 08:26:17 +0000
committerCarl Eugen Hoyos2009-07-22 08:26:17 +0000
commit9276b8f0cc2ad2346bbde5a9e1a246aa994d1cb5 (patch)
tree1b70e31ea2a2ca2ee132ea5a6ab5d7fccaea4ae3 /tests/rotozoom.c
parent04e257fa845e9f1aeb7a2f0d8d70d2c7ec1f11bc (diff)
Calculate gradient from parameter instead of using a global variable.
Originally committed as revision 19482 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'tests/rotozoom.c')
-rw-r--r--tests/rotozoom.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/rotozoom.c b/tests/rotozoom.c
index ea422acc04..e42c2751b6 100644
--- a/tests/rotozoom.c
+++ b/tests/rotozoom.c
@@ -197,8 +197,8 @@ static int ipol(uint8_t *src, int x, int y){
static void gen_image(int num, int w, int h)
{
- const int c = h_cos [teta];
- const int s = h_sin [teta];
+ const int c = h_cos [num % 360];
+ const int s = h_sin [num % 360];
const int xi = -(w/2) * c;
const int yi = (w/2) * s;