Browse Source

obs-ffmpeg: Disable AMF DTS adjustment for AV1

Ruwen Hahn 1 year ago
parent
commit
b2d83efcf3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      plugins/obs-ffmpeg/texture-amf.cpp

+ 1 - 1
plugins/obs-ffmpeg/texture-amf.cpp

@@ -575,7 +575,7 @@ static void convert_to_encoder_packet(amf_base *enc, AMFDataPtr &data,
 	packet->dts = convert_to_obs_ts(enc, data->GetPts());
 	packet->dts = convert_to_obs_ts(enc, data->GetPts());
 	packet->keyframe = type == AMF_VIDEO_ENCODER_OUTPUT_DATA_TYPE_IDR;
 	packet->keyframe = type == AMF_VIDEO_ENCODER_OUTPUT_DATA_TYPE_IDR;
 
 
-	if (enc->dts_offset)
+	if (enc->dts_offset && enc->codec != amf_codec_type::AV1)
 		packet->dts -= enc->dts_offset;
 		packet->dts -= enc->dts_offset;
 }
 }