Shouldn't this be done in VideoCommon?