From e78d31d0ef6d4b2a649a14028f8dd86f8772eb86 Mon Sep 17 00:00:00 2001 From: sunilnom Date: Mon, 8 Jun 2026 11:02:32 +0530 Subject: [PATCH] Raise max video resolution limit from 1920x1080 to 3840x2160 - Update validation in config_reader to allow 2K and 4K resolutions - Update test to reflect new 3840x2160 maximum --- src/util/config_reader.c | 4 ++-- tests/test_config_reader.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/util/config_reader.c b/src/util/config_reader.c index 09b6841..1c8ec79 100644 --- a/src/util/config_reader.c +++ b/src/util/config_reader.c @@ -417,8 +417,8 @@ int validate_tx_config(const struct dvledtx_config* config) { LOG_ERROR("video width/height must be non-zero"); return -1; } - if (config->width > 1920 || config->height > 1080) { - LOG_ERROR("video resolution %dx%d exceeds maximum 1920x1080", + if (config->width > 3840 || config->height > 2160) { + LOG_ERROR("video resolution %dx%d exceeds maximum 3840x2160", config->width, config->height); return -1; } diff --git a/tests/test_config_reader.c b/tests/test_config_reader.c index 8bea230..901d612 100644 --- a/tests/test_config_reader.c +++ b/tests/test_config_reader.c @@ -602,7 +602,7 @@ static void test_validate_resolution_exceeds_max_fails(void **state) (void)state; struct dvledtx_config cfg; fill_valid_config(&cfg); - cfg.width = 2000; /* > 1920 limit */ + cfg.width = 4000; /* > 3840 limit */ assert_int_equal(validate_tx_config(&cfg), -1); }