mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
Calculate gradient from parameter instead of using a global variable.
Originally committed as revision 19482 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
04e257fa84
commit
9276b8f0cc
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user