Commit 52d13057 authored by Tristan Matthews's avatar Tristan Matthews

video_filter: wave: use C99 loop declarations

parent 707f2169
...@@ -120,7 +120,6 @@ static void Destroy( vlc_object_t *p_this ) ...@@ -120,7 +120,6 @@ static void Destroy( vlc_object_t *p_this )
static picture_t *Filter( filter_t *p_filter, picture_t *p_pic ) static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
{ {
picture_t *p_outpic; picture_t *p_outpic;
int i_index;
double f_angle; double f_angle;
mtime_t new_date = mdate(); mtime_t new_date = mdate();
...@@ -137,9 +136,9 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic ) ...@@ -137,9 +136,9 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
p_filter->p_sys->last_date = new_date; p_filter->p_sys->last_date = new_date;
f_angle = p_filter->p_sys->f_angle; f_angle = p_filter->p_sys->f_angle;
for( i_index = 0 ; i_index < p_pic->i_planes ; i_index++ ) for( int i_index = 0 ; i_index < p_pic->i_planes ; i_index++ )
{ {
int i_line, i_num_lines, i_visible_pitch, i_pixel_pitch, i_offset, int i_num_lines, i_visible_pitch, i_pixel_pitch, i_offset,
i_visible_pixels; i_visible_pixels;
uint8_t black_pixel; uint8_t black_pixel;
uint8_t *p_in, *p_out; uint8_t *p_in, *p_out;
...@@ -163,7 +162,7 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic ) ...@@ -163,7 +162,7 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
: 0x80; : 0x80;
/* Ok, we do 3 times the sin() calculation for each line. So what ? */ /* Ok, we do 3 times the sin() calculation for each line. So what ? */
for( i_line = 0 ; i_line < i_num_lines ; i_line++ ) for( int i_line = 0 ; i_line < i_num_lines ; i_line++ )
{ {
/* Calculate today's offset, don't go above 1/20th of the screen */ /* Calculate today's offset, don't go above 1/20th of the screen */
i_offset = (int)( (double)(i_visible_pixels) i_offset = (int)( (double)(i_visible_pixels)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment