[vlc-commits] i420_rgb: fix u/v offsets

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


vlc | branch: master | Lyndon Brown <jnqnfe at gmail.com> | Mon Jan 21 21:05:49 2019 +0000| [70012f9c23d54d4081c6ec1de91f44bcb9ed2810] | committer: Jean-Baptiste Kempf

i420_rgb: fix u/v offsets

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

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

 modules/video_chroma/i420_rgb16_x86.c | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/modules/video_chroma/i420_rgb16_x86.c b/modules/video_chroma/i420_rgb16_x86.c
index 93312d8c13..35d3272baf 100644
--- a/modules/video_chroma/i420_rgb16_x86.c
+++ b/modules/video_chroma/i420_rgb16_x86.c
@@ -691,8 +691,8 @@ void I420_A8R8G8B8( filter_t *p_filter, picture_t *p_src,
                     SSE2_UNPACK_32_ARGB_UNALIGNED
                 );
                 p_y += 16;
-                p_u += 4;
-                p_v += 4;
+                p_u += 8;
+                p_v += 8;
             }
             SCALE_WIDTH;
             SCALE_HEIGHT( 420, 4 );
@@ -930,8 +930,8 @@ void I420_R8G8B8A8( filter_t *p_filter, picture_t *p_src, picture_t *p_dest )
                     SSE2_UNPACK_32_RGBA_UNALIGNED
                 );
                 p_y += 16;
-                p_u += 4;
-                p_v += 4;
+                p_u += 8;
+                p_v += 8;
             }
             SCALE_WIDTH;
             SCALE_HEIGHT( 420, 4 );
@@ -1169,8 +1169,8 @@ void I420_B8G8R8A8( filter_t *p_filter, picture_t *p_src, picture_t *p_dest )
                     SSE2_UNPACK_32_BGRA_UNALIGNED
                 );
                 p_y += 16;
-                p_u += 4;
-                p_v += 4;
+                p_u += 8;
+                p_v += 8;
             }
             SCALE_WIDTH;
             SCALE_HEIGHT( 420, 4 );
@@ -1408,8 +1408,8 @@ void I420_A8B8G8R8( filter_t *p_filter, picture_t *p_src, picture_t *p_dest )
                     SSE2_UNPACK_32_ABGR_UNALIGNED
                 );
                 p_y += 16;
-                p_u += 4;
-                p_v += 4;
+                p_u += 8;
+                p_v += 8;
             }
             SCALE_WIDTH;
             SCALE_HEIGHT( 420, 4 );



More information about the vlc-commits mailing list