[vlc-commits] i420_yuy2: remove redundant lines

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


vlc | branch: master | Lyndon Brown <jnqnfe at gmail.com> | Sun Jan 20 04:49:08 2019 +0000| [0857c20054bc490864f501f9ad07d8e73c674ee8] | committer: Jean-Baptiste Kempf

i420_yuy2: remove redundant lines

p_y1 and p_line1 are over-written (with the same value) at the start of
the loop, so pointless calculating at end

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

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

 modules/video_chroma/i420_yuy2.c | 14 --------------
 1 file changed, 14 deletions(-)

diff --git a/modules/video_chroma/i420_yuy2.c b/modules/video_chroma/i420_yuy2.c
index 14b45b936d..626e2d916d 100644
--- a/modules/video_chroma/i420_yuy2.c
+++ b/modules/video_chroma/i420_yuy2.c
@@ -531,11 +531,9 @@ static void I420_YVYU( filter_t *p_filter, picture_t *p_source,
             C_YUV420_YVYU( );
         }
 
-        p_y1 += i_source_margin;
         p_y2 += i_source_margin;
         p_u += i_source_margin_c;
         p_v += i_source_margin_c;
-        p_line1 += i_dest_margin;
         p_line2 += i_dest_margin;
     }
 
@@ -574,11 +572,9 @@ static void I420_YVYU( filter_t *p_filter, picture_t *p_source,
                 C_YUV420_YVYU( );
             }
 
-            p_y1 += i_source_margin;
             p_y2 += i_source_margin;
             p_u += i_source_margin_c;
             p_v += i_source_margin_c;
-            p_line1 += i_dest_margin;
             p_line2 += i_dest_margin;
         }
     }
@@ -602,11 +598,9 @@ static void I420_YVYU( filter_t *p_filter, picture_t *p_source,
                 C_YUV420_YVYU( );
             }
 
-            p_y1 += i_source_margin;
             p_y2 += i_source_margin;
             p_u += i_source_margin_c;
             p_v += i_source_margin_c;
-            p_line1 += i_dest_margin;
             p_line2 += i_dest_margin;
         }
     }
@@ -744,11 +738,9 @@ static void I420_UYVY( filter_t *p_filter, picture_t *p_source,
             C_YUV420_UYVY( );
         }
 
-        p_y1 += i_source_margin;
         p_y2 += i_source_margin;
         p_u += i_source_margin_c;
         p_v += i_source_margin_c;
-        p_line1 += i_dest_margin;
         p_line2 += i_dest_margin;
     }
 
@@ -787,11 +779,9 @@ static void I420_UYVY( filter_t *p_filter, picture_t *p_source,
                 C_YUV420_UYVY( );
             }
 
-            p_y1 += i_source_margin;
             p_y2 += i_source_margin;
             p_u += i_source_margin_c;
             p_v += i_source_margin_c;
-            p_line1 += i_dest_margin;
             p_line2 += i_dest_margin;
         }
     }
@@ -815,11 +805,9 @@ static void I420_UYVY( filter_t *p_filter, picture_t *p_source,
                 C_YUV420_UYVY( );
             }
 
-            p_y1 += i_source_margin;
             p_y2 += i_source_margin;
             p_u += i_source_margin_c;
             p_v += i_source_margin_c;
-            p_line1 += i_dest_margin;
             p_line2 += i_dest_margin;
         }
     }
@@ -879,11 +867,9 @@ static void I420_Y211( filter_t *p_filter, picture_t *p_source,
             C_YUV420_Y211( );
         }
 
-        p_y1 += i_source_margin;
         p_y2 += i_source_margin;
         p_u += i_source_margin_c;
         p_v += i_source_margin_c;
-        p_line1 += i_dest_margin;
         p_line2 += i_dest_margin;
     }
 }



More information about the vlc-commits mailing list