Fixes a failure to generate key frames in the H.264 encoder.