Commit f2ced3ff authored by Mans Rullgard's avatar Mans Rullgard Committed by Fiona Glaser

Fix overflow in ARM NEON i16x16 planar pred

Patch backported from ffmpeg.
parent 716cf882
...@@ -444,8 +444,8 @@ function x264_predict_16x16_p_neon ...@@ -444,8 +444,8 @@ function x264_predict_16x16_p_neon
vadd.i16 d5, d6, d7 vadd.i16 d5, d6, d7
vpadd.i16 d4, d4, d5 vpadd.i16 d4, d4, d5
vpadd.i16 d4, d4, d4 vpadd.i16 d4, d4, d4
vshl.i16 d5, d4, #2 vshll.s16 q3, d4, #2
vaddl.s16 q2, d4, d5 vaddw.s16 q2, q3, d4
vrshrn.s32 d4, q2, #6 vrshrn.s32 d4, q2, #6
mov r3, #0 mov r3, #0
vtrn.16 d4, d5 vtrn.16 d4, d5
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment