encoders/generic: Store actual decode timestamp instead of presentation timestamp

This commit is contained in:
Michael Fabian 'Xaymar' Dirks
2019-07-22 08:59:32 +02:00
parent c053933c25
commit 855b3571b1
+1 -1
View File
@@ -692,7 +692,7 @@ int encoder::generic::receive_packet(bool* received_packet, struct encoder_packe
if (res == 0) { if (res == 0) {
packet->type = OBS_ENCODER_VIDEO; packet->type = OBS_ENCODER_VIDEO;
packet->pts = this->current_packet->pts; packet->pts = this->current_packet->pts;
packet->dts = this->current_packet->pts; packet->dts = this->current_packet->dts;
packet->data = this->current_packet->data; packet->data = this->current_packet->data;
packet->size = this->current_packet->size; packet->size = this->current_packet->size;
packet->keyframe = !!(this->current_packet->flags & AV_PKT_FLAG_KEY); packet->keyframe = !!(this->current_packet->flags & AV_PKT_FLAG_KEY);