4746ce8fd4
Make sure we don't set iMaxNumRefFrames lower than iNumRefFrames. This fixes occasional test failures in EncodeDecodeTestAPI.SetOptionEncParamExt.