Enforce even size

This commit is contained in:
Jaex 2023-07-07 18:35:50 +03:00
parent 03e83ae240
commit f7a8d504ee

View file

@ -139,6 +139,11 @@ public string GetFFmpegArgs(bool isCustom = false)
monitorIndex = i;
captureArea = new Rectangle(intersection.X - screen.Bounds.X, intersection.Y - screen.Bounds.Y, intersection.Width, intersection.Height);
if (FFmpeg.IsEvenSizeRequired)
{
captureArea = CaptureHelpers.EvenRectangleSize(captureArea);
}
}
}