[vlc-commits] video_filter: invert: simplify

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


vlc | branch: master | Tristan Matthews <tmatth at videolan.org> | Mon Aug 31 13:02:22 2015 -0400| [e959f0bfb742e1a8ea5063592559219e2c0a59f7] | committer: Tristan Matthews

video_filter: invert: simplify

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

 modules/video_filter/invert.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/video_filter/invert.c b/modules/video_filter/invert.c
index 77a0aa5..7ab1443 100644
--- a/modules/video_filter/invert.c
+++ b/modules/video_filter/invert.c
@@ -135,7 +135,7 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
 
         p_out = p_outpic->p[i_index].p_pixels;
 
-        for( ; p_in < p_in_end ; )
+        while( p_in < p_in_end )
         {
             uint64_t *p_in64, *p_out64;
 
@@ -157,7 +157,7 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
             p_out = (uint8_t*)p_out64;
             p_line_end += 64;
 
-            for( ; p_in < p_line_end ; )
+            while( p_in < p_line_end )
             {
                 *p_out++ = ~( *p_in++ );
             }



More information about the vlc-commits mailing list