fix shared context with fixed-size memory units

This commit is contained in:
2025-09-28 16:33:50 +02:00
parent 6eaba98fff
commit 32eb037710
4 changed files with 24 additions and 8 deletions
+5
View File
@@ -122,6 +122,11 @@ Parameters args_parse(int argc, char **argv) {
invalid_value(arg, value);
}
} else if (is_arg(arg, "-v") || is_arg(arg, "--video-in")) {
if (params.video_in_count == MAX_VIDEO) {
log_error("maximum video input reached");
exit(EXIT_FAILURE);
}
params.video_in[params.video_in_count++] = value;
} else if (is_arg(arg, "-vs") || is_arg(arg, "--video-size")) {
params.video_size = parse_uint(arg, value);