[FFmpeg-devel] [PATCH 1/2] lavc/aarch64: Assign callback with function
Hubert Mazur
hum at semihalf.com
Wed Jun 29 11:24:39 EEST 2022
Assign c->sad[0] callback with already existing neon implementation
of pix_abs16 function.
Signed-off-by: Hubert Mazur <hum at semihalf.com>
---
libavcodec/aarch64/me_cmp_init_aarch64.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavcodec/aarch64/me_cmp_init_aarch64.c b/libavcodec/aarch64/me_cmp_init_aarch64.c
index 9fb63e9973..bec9148a1a 100644
--- a/libavcodec/aarch64/me_cmp_init_aarch64.c
+++ b/libavcodec/aarch64/me_cmp_init_aarch64.c
@@ -35,5 +35,7 @@ av_cold void ff_me_cmp_init_aarch64(MECmpContext *c, AVCodecContext *avctx)
if (have_neon(cpu_flags)) {
c->pix_abs[0][0] = ff_pix_abs16_neon;
c->pix_abs[0][3] = ff_pix_abs16_xy2_neon;
+
+ c->sad[0] = ff_pix_abs16_neon;
}
}
--
2.34.1
More information about the ffmpeg-devel
mailing list