Browse Source

obs-outputs: Adjust HEVCDecoderConfigurationRecord for hvc1 tag

We mux HEVC with the hvc1 tag, which requires the parameter sets'
array_completeness to be set to 1.
derrod 1 year ago
parent
commit
7cd72781c8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      plugins/obs-outputs/rtmp-hevc.c

+ 1 - 1
plugins/obs-outputs/rtmp-hevc.c

@@ -852,7 +852,7 @@ size_t obs_parse_hevc_header(uint8_t **header, const uint8_t *data, size_t size)
 				OBS_HEVC_NAL_SEI_SUFFIX};
 				OBS_HEVC_NAL_SEI_SUFFIX};
 
 
 			if (type == array_idx_to_type[i]) {
 			if (type == array_idx_to_type[i]) {
-				int ps_array_completeness = 0;
+				int ps_array_completeness = 1;
 				int ret = hvcc_add_nal_unit(
 				int ret = hvcc_add_nal_unit(
 					buf, len, ps_array_completeness, &hvcc,
 					buf, len, ps_array_completeness, &hvcc,
 					i);
 					i);