feat(rtsp): add option to limit packetsize for clients that cannot configure it (#5153)

Signed-off-by: Georgi Valkov <gvalkov@gmail.com>
This commit is contained in:
Georgi Valkov
2026-05-21 18:43:53 +03:00
committed by GitHub
parent 2db7176f73
commit 3a69acefa0
7 changed files with 99 additions and 0 deletions

View File

@@ -544,6 +544,7 @@ namespace config {
ENCRYPTION_MODE_NEVER, // lan_encryption_mode
ENCRYPTION_MODE_OPPORTUNISTIC, // wan_encryption_mode
0, // packetsize
};
nvhttp_t nvhttp {
@@ -1252,6 +1253,7 @@ namespace config {
int_between_f(vars, "lan_encryption_mode", stream.lan_encryption_mode, {0, 2});
int_between_f(vars, "wan_encryption_mode", stream.wan_encryption_mode, {0, 2});
int_between_f(vars, "packetsize", stream.packetsize, {0, PACKETSIZE_MAX});
path_f(vars, "file_apps", stream.file_apps);
#ifndef __ANDROID__