From 91f48ce332363d82e82316a2683315524acced4d Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 15 Jan 2026 20:51:15 +0100 Subject: [PATCH] Ignore scalar sizes that aren't 100% for video size calculation --- src/main.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index ec999ad..3d7b3b0 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2396,9 +2396,11 @@ static std::vector create_video_sources(const args_parser &arg_pars vec2i start_pos = {99999, 99999}; vec2i end_pos = {-99999, -99999}; for(const VideoSource &video_source : video_sources) { - // TODO: Skip scalar positions for now, but this should be handled in a better way - if(video_source.capture_source->pos.x_type == VVEC2I_TYPE_SCALAR || video_source.capture_source->pos.y_type == VVEC2I_TYPE_SCALAR/* - || video_source.capture_source->size.x_type == VVEC2I_TYPE_SCALAR || video_source.capture_source->size.y_type == VVEC2I_TYPE_SCALAR*/) + // TODO: Skip scalar positions for now, but this should be handled in a better way. + // Maybe handle scalars at the next loop by multiplying video size by the scalar. + if(video_source.capture_source->pos.x_type == VVEC2I_TYPE_SCALAR || video_source.capture_source->pos.y_type == VVEC2I_TYPE_SCALAR + || (video_source.capture_source->size.x_type == VVEC2I_TYPE_SCALAR && video_source.capture_source->size.x != 100) + || (video_source.capture_source->size.y_type == VVEC2I_TYPE_SCALAR && video_source.capture_source->size.y != 100)) { continue; }