From 1765b8ab179af91e44fa005b6dcdb846a05f410e Mon Sep 17 00:00:00 2001 From: itsmattkc <34096995+itsmattkc@users.noreply.github.com> Date: Fri, 7 Oct 2022 21:10:45 -0700 Subject: [PATCH] footage: don't use a divider higher than the global --- app/node/project/footage/footage.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/node/project/footage/footage.cpp b/app/node/project/footage/footage.cpp index fd936faf6..210d448f5 100644 --- a/app/node/project/footage/footage.cpp +++ b/app/node/project/footage/footage.cpp @@ -276,7 +276,8 @@ void Footage::Value(const NodeValueRow &value, const NodeGlobals &globals, NodeV // Adjust footage job's divider if (globals.vparams().divider() > 1) { // Use a divider appropriate for this target resolution - vp.set_divider(VideoParams::GetDividerForTargetResolution(vp.width(), vp.height(), globals.vparams().effective_width(), globals.vparams().effective_height())); + int calculated = VideoParams::GetDividerForTargetResolution(vp.width(), vp.height(), globals.vparams().effective_width(), globals.vparams().effective_height()); + vp.set_divider(std::min(calculated, globals.vparams().divider())); } else { // Render everything at full res vp.set_divider(1);