[vlc-commits] picture: remove the extra 2 lines per picture for SIMD
Steve Lhomme
git at videolan.org
Thu May 31 08:45:12 CEST 2018
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Mon May 28 13:58:21 2018 +0200| [37fba57c23f1f763ef2f7e9687a3d6ca3150254d] | committer: Steve Lhomme
picture: remove the extra 2 lines per picture for SIMD
Following this thread [1] we probably don't need these lines anymore.
1: https://mailman.videolan.org/pipermail/vlc-devel/2018-April/118535.html
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=37fba57c23f1f763ef2f7e9687a3d6ca3150254d
---
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;
More information about the vlc-commits
mailing list