]> git.videolan.org Git - x264.git/commitdiff
Fix overflow in ARM NEON i16x16 planar pred
authorMans Rullgard <mans@mansr.com>
Thu, 3 Feb 2011 21:32:06 +0000 (13:32 -0800)
committerJason Garrett-Glaser <jason@x264.com>
Sat, 5 Feb 2011 23:10:10 +0000 (15:10 -0800)
Patch backported from ffmpeg.

common/arm/predict-a.S

index fbcb8dad6e167b9d682328b64cc6a7f870d38934..574653ead98256519cd02142a9406ac143598f95 100644 (file)
@@ -444,8 +444,8 @@ function x264_predict_16x16_p_neon
     vadd.i16    d5,  d6,  d7
     vpadd.i16   d4,  d4,  d5
     vpadd.i16   d4,  d4,  d4
-    vshl.i16    d5,  d4,  #2
-    vaddl.s16   q2,  d4,  d5
+    vshll.s16   q3,  d4,  #2
+    vaddw.s16   q2,  q3,  d4
     vrshrn.s32  d4,  q2,  #6
     mov         r3,  #0
     vtrn.16     d4,  d5