mirror of
https://github.com/n00mkrad/flowframes.git
synced 2025-12-21 10:49:25 +01:00
Allow fractional manual fps input, better err handling if encoding fails
This commit is contained in:
@@ -219,6 +219,9 @@ namespace Flowframes.Data
|
||||
|
||||
public float GetFloat()
|
||||
{
|
||||
if (Denominator < 1) // Avoid div by zero
|
||||
return 0f;
|
||||
|
||||
return (float)Numerator / (float)Denominator;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user