瀏覽代碼

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.
nquah 2 年之前
父節點
當前提交
8137eb5f56
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      plugins/obs-outputs/rtmp-stream.c

+ 3 - 2
plugins/obs-outputs/rtmp-stream.c

@@ -1342,8 +1342,9 @@ static void *connect_thread(void *data)
 		return NULL;
 		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();
 		video_t *video = obs_get_video();
 		const struct video_output_info *info =
 		const struct video_output_info *info =
 			video_output_get_info(video);
 			video_output_get_info(video);