aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2023-11-15 16:09:05 -0300
committerJames Almer <jamrial@gmail.com>2023-11-15 16:10:15 -0300
commit78f55457c9be420f4109da45de42a36338d56aca (patch)
tree3b4c2ce4953af36ea6ebd455d9584e7f51ee8770 /libavcodec
parentc9fe9fb86300c240da5e9c1441445c8dee5c7bce (diff)
downloadffmpeg-78f55457c9be420f4109da45de42a36338d56aca.tar.gz
x86/flacds: clear the high bits from pred_order in lpc_32 functions
Reviewed-by: Ronald S. Bultje <rsbultje@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/x86/flacdsp.asm1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/x86/flacdsp.asm b/libavcodec/x86/flacdsp.asm
index 44416e4dfd..4b2fd65435 100644
--- a/libavcodec/x86/flacdsp.asm
+++ b/libavcodec/x86/flacdsp.asm
@@ -43,6 +43,7 @@ INIT_XMM %1
cglobal flac_lpc_32, 5,6,5, decoded, coeffs, pred_order, qlevel, len, j
sub lend, pred_orderd
jle .ret
+ movsxdifnidn pred_orderq, pred_orderd
lea decodedq, [decodedq+pred_orderq*4-8]
lea coeffsq, [coeffsq+pred_orderq*4]
neg pred_orderq