obs-outputs: Switch RTMP color metadata order

Sends color metadata before the video header for RTMP streams. Only
applicable to HDR RTMP streams. Ensures the server sees the correctly
configured color metadata first, in cases where the decoder config in
the video header has incorrect or missing color information. Mitigates a
bug that users with outdated AMD drivers may encounter.
This commit is contained in:
nquah
2024-01-03 16:31:58 -05:00
committed by Ryan Foster
parent f6c8fe7b64
commit f1f5b34d7b
+3 -2
View File
@@ -923,8 +923,6 @@ static inline bool send_headers(struct rtmp_stream *stream)
if (!send_audio_header(stream, i++, &next))
return false;
if (!send_video_header(stream))
return false;
// send metadata only if HDR
video_t *video = obs_get_video();
@@ -934,6 +932,9 @@ static inline bool send_headers(struct rtmp_stream *stream)
if (!send_video_metadata(stream)) // Y2023 spec
return false;
if (!send_video_header(stream))
return false;
while (next) {
if (!send_audio_header(stream, i++, &next))
return false;