Validate Even Render Resolution Before Starting

This commit is contained in:
copecone committed 2026-10-14 20:20:16 +09:00
1 parent a4dba82729
commit 1fdee67f9d
3 files changed
+10

No files matched your search

+8
View File
@@ -846,6 +846,14 @@ internal static class RenderConfigWindow
var config = UiConfig;
SyncUItoConfig(config);
// The encoders use 4:2:0 chroma subsampling, which needs an even width and height.
if (config.RenderWidth % 2 != 0 || config.RenderHeight % 2 != 0)
{
ShowValidationError(LocalizationManager.Get(
"ui.render_config.validation_even_size", config.RenderWidth, config.RenderHeight));
return;
}
// Sync Output Directory
if (_outputDirInput != null)
{