Update ldrvGetFrame.m