[FFmpeg-cvslog] x86/flacds: clear the high bits from pred_order in lpc_32 functions

James Almer git at videolan.org
Wed Nov 15 21:10:59 EET 2023


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Wed Nov 15 16:09:05 2023 -0300| [78f55457c9be420f4109da45de42a36338d56aca] | committer: James Almer

x86/flacds: clear the high bits from pred_order in lpc_32 functions

Reviewed-by: Ronald S. Bultje <rsbultje at gmail.com>
Signed-off-by: James Almer <jamrial at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=78f55457c9be420f4109da45de42a36338d56aca
---

 libavcodec/x86/flacdsp.asm | 1 +
 1 file changed, 1 insertion(+)

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



More information about the ffmpeg-cvslog mailing list