Part of MPlayer patch: