Allow fractional manual fps input, better err handling if encoding fails

This commit is contained in:
N00MKRAD
2021-04-05 11:58:07 +02:00
parent f51c10bef0
commit 9287ec6b77
4 changed files with 30 additions and 9 deletions

View File

@@ -219,6 +219,9 @@ namespace Flowframes.Data
public float GetFloat()
{
if (Denominator < 1) // Avoid div by zero
return 0f;
return (float)Numerator / (float)Denominator;
}