Ignore scalar sizes that aren't 100% for video size calculation

This commit is contained in:
dec05eba
2026-01-15 20:51:15 +01:00
parent f4d061eee7
commit 91f48ce332

View File

@@ -2396,9 +2396,11 @@ static std::vector<VideoSource> 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;
}