[vlc-commits] video_filter: scale: use C99 loop declaration

Tristan Matthews git at videolan.org
Mon Aug 31 20:11:00 CEST 2015


vlc | branch: master | Tristan Matthews <tmatth at videolan.org> | Mon Aug 31 11:01:04 2015 -0400| [c964a3208240f0f9fb961e1e03a691f7ae416277] | committer: Tristan Matthews

video_filter: scale: use C99 loop declaration

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c964a3208240f0f9fb961e1e03a691f7ae416277
---

 modules/video_filter/scale.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/modules/video_filter/scale.c b/modules/video_filter/scale.c
index 0884299..80e1dff 100644
--- a/modules/video_filter/scale.c
+++ b/modules/video_filter/scale.c
@@ -87,7 +87,6 @@ static int OpenFilter( vlc_object_t *p_this )
 static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
 {
     picture_t *p_pic_dst;
-    int i_plane;
 
     if( !p_pic ) return NULL;
 
@@ -113,7 +112,7 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
         p_filter->fmt_in.video.i_chroma != VLC_CODEC_ARGB &&
         p_filter->fmt_in.video.i_chroma != VLC_CODEC_RGB32 )
     {
-        for( i_plane = 0; i_plane < p_pic_dst->i_planes; i_plane++ )
+        for( int i_plane = 0; i_plane < p_pic_dst->i_planes; i_plane++ )
         {
             const int i_src_pitch    = p_pic->p[i_plane].i_pitch;
             const int i_dst_pitch    = p_pic_dst->p[i_plane].i_pitch;



More information about the vlc-commits mailing list