[vlc-commits] i420_rgb: remove redundant lines

Lyndon Brown git at videolan.org
Wed Mar 6 17:13:34 CET 2019


vlc | branch: master | Lyndon Brown <jnqnfe at gmail.com> | Mon Jan 21 20:41:20 2019 +0000| [252d7cefe33d72679c08cf5a741e456e4245db66] | committer: Jean-Baptiste Kempf

i420_rgb: remove redundant lines

p_buffer gets reset at the start of each loop, so pointless adjusting here

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 modules/video_chroma/i420_rgb16_x86.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/modules/video_chroma/i420_rgb16_x86.c b/modules/video_chroma/i420_rgb16_x86.c
index cf8babb1ce..93312d8c13 100644
--- a/modules/video_chroma/i420_rgb16_x86.c
+++ b/modules/video_chroma/i420_rgb16_x86.c
@@ -322,7 +322,6 @@ void I420_R5G5B5( filter_t *p_filter, picture_t *p_src, picture_t *p_dest )
             p_y += 8;
             p_u += 4;
             p_v += 4;
-            p_buffer += 8;
         }
         SCALE_WIDTH;
         SCALE_HEIGHT( 420, 2 );
@@ -563,7 +562,6 @@ void I420_R5G6B5( filter_t *p_filter, picture_t *p_src, picture_t *p_dest )
             p_y += 8;
             p_u += 4;
             p_v += 4;
-            p_buffer += 8;
         }
         SCALE_WIDTH;
         SCALE_HEIGHT( 420, 2 );
@@ -803,7 +801,6 @@ void I420_A8R8G8B8( filter_t *p_filter, picture_t *p_src,
             p_y += 8;
             p_u += 4;
             p_v += 4;
-            p_buffer += 8;
         }
         SCALE_WIDTH;
         SCALE_HEIGHT( 420, 4 );
@@ -1043,7 +1040,6 @@ void I420_R8G8B8A8( filter_t *p_filter, picture_t *p_src, picture_t *p_dest )
             p_y += 8;
             p_u += 4;
             p_v += 4;
-            p_buffer += 8;
         }
         SCALE_WIDTH;
         SCALE_HEIGHT( 420, 4 );
@@ -1283,7 +1279,6 @@ void I420_B8G8R8A8( filter_t *p_filter, picture_t *p_src, picture_t *p_dest )
             p_y += 8;
             p_u += 4;
             p_v += 4;
-            p_buffer += 8;
         }
         SCALE_WIDTH;
         SCALE_HEIGHT( 420, 4 );
@@ -1523,7 +1518,6 @@ void I420_A8B8G8R8( filter_t *p_filter, picture_t *p_src, picture_t *p_dest )
             p_y += 8;
             p_u += 4;
             p_v += 4;
-            p_buffer += 8;
         }
         SCALE_WIDTH;
         SCALE_HEIGHT( 420, 4 );



More information about the vlc-commits mailing list