From 14db1489e099454f7af4974c9d6fadb90592b85d Mon Sep 17 00:00:00 2001 From: nquah Date: Thu, 21 Dec 2023 13:45:59 -0500 Subject: [PATCH] obs-outputs: Enable HDR for HEVC over RTMP Removes flag guard to enable HDR streaming for HEVC over enhanced-RTMP. This functionality is currently only supported by YouTube. See github.com/veovera/enhanced-rtmp for the enhanced-RTMP spec. --- plugins/obs-outputs/rtmp-stream.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/obs-outputs/rtmp-stream.c b/plugins/obs-outputs/rtmp-stream.c index 51168b918dda7d..dde7df0f84b5aa 100644 --- a/plugins/obs-outputs/rtmp-stream.c +++ b/plugins/obs-outputs/rtmp-stream.c @@ -1369,8 +1369,9 @@ static void *connect_thread(void *data) return NULL; } - // HDR streaming disabled for AV1 and HEVC - if (stream->video_codec != CODEC_H264) { + // HDR streaming disabled for AV1 + if (stream->video_codec != CODEC_H264 && + stream->video_codec != CODEC_HEVC) { video_t *video = obs_get_video(); const struct video_output_info *info = video_output_get_info(video);