[vlc-commits] vdpau: use ctz()
Rémi Denis-Courmont
git at videolan.org
Sun Jan 13 19:23:35 CET 2013
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Jan 13 20:23:26 2013 +0200| [105af824e6e5d298fa797bee2515a4fd121f1b39] | committer: Rémi Denis-Courmont
vdpau: use ctz()
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=105af824e6e5d298fa797bee2515a4fd121f1b39
---
modules/codec/avcodec/vdpau.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/codec/avcodec/vdpau.c b/modules/codec/avcodec/vdpau.c
index 2b26646..c41340b 100644
--- a/modules/codec/avcodec/vdpau.c
+++ b/modules/codec/avcodec/vdpau.c
@@ -91,7 +91,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;
More information about the vlc-commits
mailing list