shared/bpm: Fix NAL type for HEVC user data SEIs

This commit is contained in:
Dennis Sädtler
2025-12-17 18:02:19 -05:00
committed by Ryan Foster
parent 659163e0e8
commit caf1de1595
+2 -2
View File
@@ -431,11 +431,11 @@ static bool process_metrics(obs_output_t *output, struct encoder_packet *out, st
* nuh_temporal_id_plus1 u(3)
* }
*/
const uint8_t prefix_sei_nal_type = 39;
const uint8_t suffix_sei_nal_type = 40;
/* The first bit is always 0, so we just need to
* save the last bit off the original header and
* add the SEI NAL type. */
uint8_t first_byte = (prefix_sei_nal_type << 1) | (0x01 & hevc_nal_header[0]);
uint8_t first_byte = (suffix_sei_nal_type << 1) | (0x01 & hevc_nal_header[0]);
hevc_nal_header[0] = first_byte;
/* The HEVC NAL unit header is 2 byte instead of
* one, otherwise everything else is the