The branch, release/7.1 has been updated
via 8f77695e65a69c8009804e9d457762d2d394403d (commit)
from 8320e6b4155d4488e3ed2665a05d2b2f389fa20d (commit)
- Log -----------------------------------------------------------------
commit 8f77695e65a69c8009804e9d457762d2d394403d
Author: Sean McGovern <[email protected]>
AuthorDate: Thu Jan 16 16:30:52 2025 -0500
Commit: brad <[email protected]>
CommitDate: Fri Sep 26 12:49:26 2025 +0000
avcodec/svq1enc: restrict Altivec acceleration to big-endian POWER
configurations
This was disabled in da60b99a8857d5ca236f32c1799a066e0135a866 and then
accidentally re-enabled in 172b0e2e88832822632841e8e0d3794f974cbc93.
The code in question was never properly adapted for litte-endian mode.
refs: trac/10955
Signed-off-by: Michael Niedermayer <[email protected]>
(cherry picked from commit 4322be512b2bd6c7d8ee61a2b0230546f3107be0)
diff --git a/libavcodec/ppc/svq1enc_altivec.c b/libavcodec/ppc/svq1enc_altivec.c
index 5721bede34..78c79a68dc 100644
--- a/libavcodec/ppc/svq1enc_altivec.c
+++ b/libavcodec/ppc/svq1enc_altivec.c
@@ -29,7 +29,7 @@
#include "libavcodec/svq1encdsp.h"
-#if HAVE_ALTIVEC
+#if HAVE_ALTIVEC && HAVE_BIGENDIAN
static int ssd_int8_vs_int16_altivec(const int8_t *pix1, const int16_t *pix2,
intptr_t size)
{
@@ -69,14 +69,14 @@ static int ssd_int8_vs_int16_altivec(const int8_t *pix1,
const int16_t *pix2,
return u.score[3];
}
-#endif /* HAVE_ALTIVEC */
+#endif /* HAVE_ALTIVEC && HAVE_BIGENDIAN */
av_cold void ff_svq1enc_init_ppc(SVQ1EncDSPContext *c)
{
-#if HAVE_ALTIVEC
+#if HAVE_ALTIVEC && HAVE_BIGENDIAN
if (!PPC_ALTIVEC(av_get_cpu_flags()))
return;
c->ssd_int8_vs_int16 = ssd_int8_vs_int16_altivec;
-#endif /* HAVE_ALTIVEC */
+#endif /* HAVE_ALTIVEC && HAVE_BIGENDIAN */
}
-----------------------------------------------------------------------
Summary of changes:
libavcodec/ppc/svq1enc_altivec.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
hooks/post-receive
--
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]