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); }