Fix video frame timing issues with new encoder code