[vlc-commits] video_filter: cropadd: use C99 loop declarations
Tristan Matthews
git at videolan.org
Mon Aug 31 20:11:04 CEST 2015
vlc | branch: master | Tristan Matthews <tmatth at videolan.org> | Mon Aug 31 13:39:22 2015 -0400| [6cd147c9f820fcf3f69709b47acfaddedca50c27] | committer: Tristan Matthews
video_filter: cropadd: use C99 loop declarations
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6cd147c9f820fcf3f69709b47acfaddedca50c27
---
modules/video_filter/croppadd.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/modules/video_filter/croppadd.c b/modules/video_filter/croppadd.c
index 2ed34cd..ccc7a56 100644
--- a/modules/video_filter/croppadd.c
+++ b/modules/video_filter/croppadd.c
@@ -214,7 +214,6 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
{
filter_sys_t *p_sys = p_filter->p_sys;
picture_t *p_outpic;
- int i_plane;
int i_width, i_height, i_xcrop, i_ycrop,
i_outwidth, i_outheight, i_xpadd, i_ypadd;
@@ -230,7 +229,7 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
return NULL;
}
- for( i_plane = 0; i_plane < p_pic->i_planes; i_plane++ )
+ for( int i_plane = 0; i_plane < p_pic->i_planes; i_plane++ )
/* p_pic and p_outpic have the same chroma/number of planes but that's
* about it. */
{
@@ -274,8 +273,7 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
memset( p_out, i_padd_color, i_ypadd * p_outplane->i_pitch );
p_out += i_ypadd * p_outplane->i_pitch;
- int i_line;
- for( i_line = 0; i_line < i_height; i_line++ )
+ for( int i_line = 0; i_line < i_height; i_line++ )
{
uint8_t *p_in_next = p_in + p_plane->i_pitch;
uint8_t *p_out_next = p_out + p_outplane->i_pitch;
More information about the vlc-commits
mailing list