Do not add input rate arg if the specified rate is 0

This commit is contained in:
N00MKRAD
2025-03-10 11:58:28 +01:00
parent 813ca0b960
commit 6a8c3db820

View File

@@ -47,9 +47,12 @@ namespace Flowframes.Media
public static async Task<string> GetFfmpegExportArgsIn(Fraction fps, float itsScale, int rotation = 0)
{
var args = new List<string>();
fps = fps / new Fraction(itsScale);
args.Add($"-r {fps}");
if(fps > 0.1f)
{
args.Add($"-r {fps}");
}
if(rotation != 0)
{