Increase default raw memsink size to support 4k video (#327)

With this change, it's possible to use ustreamer to handle 4k HDMI input
on RK3588-based boards (tested on Orange Pi 5+ and Radxa ROCK 5B+).
This commit is contained in:
Marek Marczykowski-Górecki
2026-03-12 01:13:42 +01:00
committed by GitHub
parent fa15d9693f
commit 52a2326426
2 changed files with 2 additions and 2 deletions

View File

@@ -61,7 +61,7 @@ uz us_memsink_calculate_size(const char *obj) {
} else if (!strcasecmp(ptr, "h264")) {
return 2 * 1024 * 1024;
} else if (!strcasecmp(ptr, "raw")) {
return 1920 * 1200 * 3; // RGB
return 3840 * 2160 * 3; // RGB
}
}
return 0;

View File

@@ -27,7 +27,7 @@
#define US_MEMSINK_MAGIC ((u64)0xCAFEBABECAFEBABE)
#define US_MEMSINK_VERSION ((u32)7)
#define US_MEMSINK_VERSION ((u32)8)
typedef struct {