[FFmpeg-cvslog] avutil/aes: Use #if checks instead of if (ARCH_X86)
Andreas Rheinhardt
git at videolan.org
Mon Apr 14 00:18:12 EEST 2025
ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Thu Apr 10 13:41:55 2025 +0200| [516bcfc169ac4ba934aa12ca384c82e51fdb617c] | committer: Andreas Rheinhardt
avutil/aes: Use #if checks instead of if (ARCH_X86)
Reviewed-by: James Almer <jamrial at gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=516bcfc169ac4ba934aa12ca384c82e51fdb617c
---
libavutil/aes.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/libavutil/aes.c b/libavutil/aes.c
index 13a34c3bf6..3c8ac1c349 100644
--- a/libavutil/aes.c
+++ b/libavutil/aes.c
@@ -237,8 +237,9 @@ int av_aes_init(AVAES *a, const uint8_t *key, int key_bits, int decrypt)
a->rounds = rounds;
a->crypt = decrypt ? aes_decrypt : aes_encrypt;
- if (ARCH_X86)
- ff_init_aes_x86(a, decrypt);
+#if ARCH_X86
+ ff_init_aes_x86(a, decrypt);
+#endif
ff_thread_once(&aes_static_init, aes_init_static);
More information about the ffmpeg-cvslog
mailing list