client: fixed video recording sync drift, fixes #380

Thanks to q3mme team for explicit GPLv3 permission and ioq3 for factorized patch.