[vlc-devel] [PATCH] [RFC] picture: remove the extra 2 lines per picture for SIMD

Steve Lhomme robux4 at ycbcr.xyz
Mon May 28 13:58:21 CEST 2018


Following this thread [1] we probably don't need these lines anymore.

1: https://mailman.videolan.org/pipermail/vlc-devel/2018-April/118535.html
---
 src/misc/picture.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/src/misc/picture.c b/src/misc/picture.c
index f6abd6016a..2b55796def 100644
--- a/src/misc/picture.c
+++ b/src/misc/picture.c
@@ -140,10 +140,6 @@ int picture_Setup( picture_t *p_picture, const video_format_t *restrict fmt )
     width = width / i_modulo_w * i_modulo_w;
     height = height / i_modulo_h * i_modulo_h;
 
-    /* Hack: append two scan lines for some SIMD assembler */
-    if (unlikely(add_overflow(height, 2 * i_ratio_h, &height)))
-        return VLC_EGENERIC;
-
     /* plane_t uses 'int'. */
     if (unlikely(width > INT_MAX) || unlikely(height > INT_MAX))
         return VLC_EGENERIC;
-- 
2.17.0



More information about the vlc-devel mailing list