Skip to content

Commit

Permalink
obs-ffmpeg: Disable AMF DTS adjustment for AV1
Browse files Browse the repository at this point in the history
  • Loading branch information
palana authored and RytoEX committed Jul 30, 2024
1 parent e7bf19d commit b2d83ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/obs-ffmpeg/texture-amf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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->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;
}

Expand Down

0 comments on commit b2d83ef

Please sign in to comment.