diff --git a/modules/pacing/paced_sender.cc b/modules/pacing/paced_sender.cc index 440c1d67fad..dd5f011432a 100644 --- a/modules/pacing/paced_sender.cc +++ b/modules/pacing/paced_sender.cc @@ -16,6 +16,7 @@ #include #include #include +#include #include "absl/memory/memory.h" #include "modules/congestion_controller/goog_cc/alr_detector.h" @@ -376,7 +377,7 @@ void PacedSender::Process() { int64_t last_frame_cost = end_timestamp - capture_timestamp; int64_t time_since_last_frame = clock_->TimeInMilliseconds() - end_timestamp; - fprintf(recorder, "%lld\t%lld\t%zd\t%lld\n", frame_count, + fprintf(recorder, "%" PRId64 "\t%" PRId64 "\t%zd\t%" PRId64 "\n", frame_count, last_frame_cost, total_size, time_since_last_frame); frame_count++; total_size = 0; diff --git a/video/video_receive_stream.cc b/video/video_receive_stream.cc index 8755fbe6919..2ddcad039b9 100644 --- a/video/video_receive_stream.cc +++ b/video/video_receive_stream.cc @@ -15,6 +15,7 @@ #include #include #include +#include #include "absl/memory/memory.h" #include "absl/types/optional.h" @@ -433,7 +434,7 @@ bool VideoReceiveStream::Decode() { int64_t now_ms = clock_->TimeInMilliseconds(); if (recorder_pre_ != nullptr) { int32_t frame_ts = frame->Timestamp(); - fprintf(recorder_pre_, "%d\t%lld\n", frame_ts, now_ms); + fprintf(recorder_pre_, "%d\t%" PRId64 "\n", frame_ts, now_ms); } RTC_DCHECK_EQ(res, video_coding::FrameBuffer::ReturnReason::kFrameFound); int decode_result = video_receiver_.Decode(frame.get());