libobs: Store system timestamp DTS on packets

This commit is contained in:
jp9000 2016-06-11 11:38:12 -07:00
parent e3deb718bb
commit 3d53cf3a6c
2 changed files with 4 additions and 0 deletions

View File

@ -809,6 +809,7 @@ static inline void do_encode(struct obs_encoder *encoder,
* you do not want to use relative timestamps here */
pkt.dts_usec = encoder->start_ts / 1000 +
packet_dts_usec(&pkt) - encoder->offset_usec;
pkt.sys_dts_usec = pkt.dts_usec;
pthread_mutex_lock(&encoder->callbacks_mutex);

View File

@ -58,6 +58,9 @@ struct encoder_packet {
/* DTS in microseconds */
int64_t dts_usec;
/* System DTS in microseconds */
int64_t sys_dts_usec;
/**
* Packet priority
*