Source code to play video with VDPAU

I’m looking for source code to play videos on VDPAU hardware.

I found the VDPAU code in mplayer, but it would be nice to have standalone code.

Any pointers appreciated.

http://cgit.freedesktop.org/~aplattner/libvdpau/

Standalone code? Nah, there’s none for that. Even with vdpau you must first read the file, then extract audio and video streams, then extract frames, then send those frames to VDPAU, then render the result on the screen.