mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-21 04:37:09 +08:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user