1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-15 14:13:16 +02:00

lavu/tx: clean up CPU flags check

Just makes it more readable.
This commit is contained in:
Lynne
2022-01-27 01:52:02 +01:00
parent 9787005846
commit 008c131d68

View File

@@ -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 */