diff --git a/libswresample/x86/rematrix.asm b/libswresample/x86/rematrix.asm
index 4d66debeaf199e2bb5193bd71089dc1370e6d695..ee50e20fa61b4a6d958cbb26340a660d7c0b980a 100644
--- a/libswresample/x86/rematrix.asm
+++ b/libswresample/x86/rematrix.asm
@@ -43,7 +43,7 @@ mix_2_1_float_u_int %+ SUFFIX
 %endif
     VBROADCASTSS m4, [coeffpq + 4*index1q]
     VBROADCASTSS m5, [coeffpq + 4*index2q]
-    shl lenq    , 2
+    shl lend    , 2
     add in1q    , lenq
     add in2q    , lenq
     add outq    , lenq
@@ -180,7 +180,7 @@ mix_2_1_int16_u_int %+ SUFFIX
     pslld  m7, m4
     psrld  m7, 1
     punpcklwd m5, m6
-    add lenq    , lenq
+    add lend    , lend
     add in1q    , lenq
     add in2q    , lenq
     add outq    , lenq