[FFmpeg-devel] [PATCH 5/5] avutil/aarch64: Fallback to clock_gettime as timer on Android
Martin Storsjö
martin at martin.st
Tue Jun 4 23:25:13 EEST 2024
On Tue, 4 Jun 2024, Zhao Zhili wrote:
> From: Zhao Zhili <zhilizhao at tencent.com>
>
> The inline asm doesn't work on Android.
Using pmccntr_el0 doen't work, no, but instead of falling back to
clock_gettime, you may want to use cntvct_el0 instead of pmccntr_el0. IIRC
that works on Android, at least it worked a number of years ago. It has
less precision than pmccntr_el0, but maybe is better than clock_gettime?
I.e., use similar inline assembly as before, but with cntvct_el0 instead
of pmccntr_el0.
// Martin
More information about the ffmpeg-devel
mailing list