[FFmpeg-cvslog] lavu/tx: clean up CPU flags check
Lynne
git at videolan.org
Thu Jan 27 03:19:49 EET 2022
ffmpeg | branch: master | Lynne <dev at lynne.ee> | Thu Jan 27 01:52:02 2022 +0100| [008c131d681a764cc77ab3713ab97efd279fcbcc] | committer: Lynne
lavu/tx: clean up CPU flags check
Just makes it more readable.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=008c131d681a764cc77ab3713ab97efd279fcbcc
---
libavutil/tx.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libavutil/tx.c b/libavutil/tx.c
index 5c1ac20c92..2897f3bd35 100644
--- a/libavutil/tx.c
+++ b/libavutil/tx.c
@@ -496,7 +496,8 @@ av_cold int ff_tx_init_subtx(AVTXContext *s, enum AVTXType type,
continue;
/* Check if the CPU supports the required ISA */
- if (!(!cd->cpu_flags || (cpu_flags & (cd->cpu_flags & ~slow_mask))))
+ if (cd->cpu_flags != FF_TX_CPU_FLAGS_ALL &&
+ !(cpu_flags & (cd->cpu_flags & ~slow_mask)))
continue;
/* Check for factors */
More information about the ffmpeg-cvslog
mailing list