Fix bug where the wrong number of frames could be encoded (if one frame takes longer than the others)
Fix bug where the wrong number of frames could be encoded (if one frame takes longer than the others)

ultravideo/kvazaar,lu-zero/kvazaar,lu-zero/kvazaar,ultravideo/kvazaar,lu-zero/kvazaar,ultravideo/kvazaar,ultravideo/kvazaar,ultravideo/kvazaar,lu-zero/kvazaar