lavu/tx: clean up CPU flags check

Just makes it more readable.
release/5.1
Lynne 3 years ago
parent 9787005846
commit 008c131d68
No known key found for this signature in database
GPG Key ID: A2FEA5F03F034464
  1. 3
      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 */

Loading…
Cancel
Save