Commit f839e629 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont Committed by Jean-Paul Saman

vdpau: use ctz()

(cherry picked from commit 105af824e6e5d298fa797bee2515a4fd121f1b39)
Signed-off-by: default avatarJean-Paul Saman <jpsaman@videolan.org>
parent 33bc26c1
......@@ -97,7 +97,7 @@ static int Lock (vlc_va_t *va, AVFrame *ff)
return VLC_EGENERIC;
}
unsigned idx = __builtin_ctz (sys->available);
unsigned idx = ctz (sys->available);
sys->available &= ~(1 << idx);
VdpVideoSurface *surface = sys->surfaces + idx;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment