[vlc-commits] video_filter: wave: use C99 loop declarations
Tristan Matthews
git at videolan.org
Mon Aug 31 20:10:59 CEST 2015
vlc | branch: master | Tristan Matthews <tmatth at videolan.org> | Mon Aug 31 10:46:44 2015 -0400| [52d130573ebc17fad0fc4ea71affb2b91106f2f5] | committer: Tristan Matthews
video_filter: wave: use C99 loop declarations
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=52d130573ebc17fad0fc4ea71affb2b91106f2f5
---
modules/video_filter/wave.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/modules/video_filter/wave.c b/modules/video_filter/wave.c
index 3fbfcab..096462c 100644
--- a/modules/video_filter/wave.c
+++ b/modules/video_filter/wave.c
@@ -120,7 +120,6 @@ static void Destroy( vlc_object_t *p_this )
static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
{
picture_t *p_outpic;
- int i_index;
double f_angle;
mtime_t new_date = mdate();
@@ -137,9 +136,9 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
p_filter->p_sys->last_date = new_date;
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;
uint8_t black_pixel;
uint8_t *p_in, *p_out;
@@ -163,7 +162,7 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
: 0x80;
/* 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 */
i_offset = (int)( (double)(i_visible_pixels)
More information about the vlc-commits
mailing list