renderer: protect against div by zero
vdpau: some rework, squash  me