lavu/riscv: fix parsing the unaligned access capability

Pointed-out-by: Stefan O'Rear <sorear@fastmail.com>
release/7.1
Rémi Denis-Courmont 6 months ago
parent 0cc8661499
commit 83e5fdd3f4
  1. 8
      libavutil/riscv/cpu.c

@ -77,8 +77,12 @@ int ff_get_cpu_flags_riscv(void)
if (pairs[1].value & RISCV_HWPROBE_EXT_ZVBB)
ret |= AV_CPU_FLAG_RV_ZVBB;
#endif
if (pairs[2].value & RISCV_HWPROBE_MISALIGNED_FAST)
ret |= AV_CPU_FLAG_RV_MISALIGNED;
switch (pairs[2].value & RISCV_HWPROBE_MISALIGNED_MASK) {
case RISCV_HWPROBE_MISALIGNED_FAST:
ret |= AV_CPU_FLAG_RV_MISALIGNED;
break;
default:
}
} else
#endif
#if HAVE_GETAUXVAL

Loading…
Cancel
Save