obs-ffmpeg: Disable NVENC DTS adjustment for AV1

This commit is contained in:
Ruwen Hahn
2024-07-12 16:04:50 +02:00
committed by Ryan Foster
parent 1aa4bd9fc7
commit e7bf19d139
+3 -2
View File
@@ -1980,8 +1980,9 @@ static bool nvenc_encode_shared(struct nvenc_data *enc, struct nv_bitstream *bs,
int64_t dts;
deque_pop_front(&enc->dts_list, &dts, sizeof(dts));
/* subtract bframe delay from dts */
dts -= (int64_t)enc->bframes * packet->timebase_num;
/* subtract bframe delay from dts for H.264 and HEVC */
if (enc->codec != CODEC_AV1)
dts -= (int64_t)enc->bframes * packet->timebase_num;
*received_packet = true;
packet->data = enc->packet_data.array;