Skip to content

Commit b327935

Browse files
authored
Merge pull request #3 from brianmed/bugfix/send-pts-to-hang-c
Send pts to hang-c
2 parents 79fb813 + 21a1b6f commit b327935

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/moq-output.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -116,13 +116,13 @@ void MoQOutput::Data(struct encoder_packet *packet)
116116
}
117117

118118
if (packet->type == OBS_ENCODER_AUDIO) {
119-
LOG_DEBUG("Received audio packet - size: %zu, dts: %lld", packet->size, packet->dts_usec);
120-
hang_write_audio_packet_from_c(packet->data, packet->size, packet->dts_usec);
119+
// LOG_DEBUG("Received audio packet - size: %zu, pts: %lld", packet->size, packet->pts);
120+
hang_write_audio_packet_from_c(packet->data, packet->size, packet->pts);
121121
return;
122122
} else if (packet->type == OBS_ENCODER_VIDEO) {
123-
LOG_DEBUG("Received video packet - size: %zu, keyframe: %s, dts: %lld", packet->size,
124-
packet->keyframe ? "yes" : "no", packet->dts_usec);
125-
hang_write_video_packet_from_c(packet->data, packet->size, packet->keyframe, packet->dts_usec);
123+
// LOG_DEBUG("Received video packet - size: %zu, keyframe: %s, pts: %lld", packet->size,
124+
// packet->keyframe ? "yes" : "no", packet->pts);
125+
hang_write_video_packet_from_c(packet->data, packet->size, packet->keyframe, packet->pts);
126126
total_bytes_sent += packet->size;
127127
return;
128128
}
@@ -151,7 +151,7 @@ void MoQOutput::ConfigureVideoTrack()
151151
auto video_height = obs_encoder_get_height(encoder);
152152

153153
LOG_INFO("Video codec: %s, profile: %s, bitrate: %d, width: %d, height: %d", video_codec, profile, video_bitrate,
154-
video_height);
154+
video_width, video_height);
155155
return;
156156
}
157157

0 commit comments

Comments
 (0)