It is trick of Media Foundation. It is passed as unsigned value, but it must be cast as signed. See http://msdn.microsoft.com/en-us/library/windows/desktop/ms698965%28v=vs.85%29.aspx