From 21a1b6fcd6f7daf2c1f5ca7d3889d75ed7e66bf6 Mon Sep 17 00:00:00 2001 From: Brian Medley Date: Sat, 29 Nov 2025 19:32:25 -0500 Subject: [PATCH] Send pts to hang-c --- src/moq-output.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/moq-output.cpp b/src/moq-output.cpp index 85fba40..c8a50c0 100644 --- a/src/moq-output.cpp +++ b/src/moq-output.cpp @@ -116,13 +116,13 @@ void MoQOutput::Data(struct encoder_packet *packet) } if (packet->type == OBS_ENCODER_AUDIO) { - LOG_DEBUG("Received audio packet - size: %zu, dts: %lld", packet->size, packet->dts_usec); - hang_write_audio_packet_from_c(packet->data, packet->size, packet->dts_usec); + // LOG_DEBUG("Received audio packet - size: %zu, pts: %lld", packet->size, packet->pts); + hang_write_audio_packet_from_c(packet->data, packet->size, packet->pts); return; } else if (packet->type == OBS_ENCODER_VIDEO) { - LOG_DEBUG("Received video packet - size: %zu, keyframe: %s, dts: %lld", packet->size, - packet->keyframe ? "yes" : "no", packet->dts_usec); - hang_write_video_packet_from_c(packet->data, packet->size, packet->keyframe, packet->dts_usec); + // LOG_DEBUG("Received video packet - size: %zu, keyframe: %s, pts: %lld", packet->size, + // packet->keyframe ? "yes" : "no", packet->pts); + hang_write_video_packet_from_c(packet->data, packet->size, packet->keyframe, packet->pts); total_bytes_sent += packet->size; return; } @@ -151,7 +151,7 @@ void MoQOutput::ConfigureVideoTrack() auto video_height = obs_encoder_get_height(encoder); LOG_INFO("Video codec: %s, profile: %s, bitrate: %d, width: %d, height: %d", video_codec, profile, video_bitrate, - video_height); + video_width, video_height); return; }