diff options
author | Lynne <dev@lynne.ee> | 2022-01-27 01:52:02 +0100 |
---|---|---|
committer | Lynne <dev@lynne.ee> | 2022-01-27 02:18:06 +0100 |
commit | 008c131d681a764cc77ab3713ab97efd279fcbcc (patch) | |
tree | 04afad467b308b428d35da3e5f7aa07914293593 /libavutil/tx.c | |
parent | 9787005846893c1d1c01cb8ac71abed91980b218 (diff) | |
download | ffmpeg-008c131d681a764cc77ab3713ab97efd279fcbcc.tar.gz |
lavu/tx: clean up CPU flags check
Just makes it more readable.
Diffstat (limited to 'libavutil/tx.c')
-rw-r--r-- | libavutil/tx.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 */ |