Implement AV1 codec support

This has a breaking change to StreamConfiguration that requires client updates.
This commit is contained in:
Cameron Gutman
2023-07-02 22:16:20 -05:00
parent c0792168f5
commit e36bde4acc
6 changed files with 143 additions and 78 deletions

View File

@@ -288,7 +288,7 @@ int LiStartConnection(PSERVER_INFORMATION serverInfo, PSTREAM_CONFIGURATION stre
}
// Dimensions over 4096 are only supported with HEVC on NVENC
if (!StreamConfig.supportsHevc &&
if (!(StreamConfig.supportedVideoFormats & ~VIDEO_FORMAT_MASK_H264) &&
(StreamConfig.width > 4096 || StreamConfig.height > 4096)) {
Limelog("WARNING: Streaming at resolutions above 4K using H.264 will likely fail! Trying anyway!\n");
}