Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

Use portable format specifiers to fix Linux build #40

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion modules/pacing/paced_sender.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#include <set>
#include <utility>
#include <vector>
#include <inttypes.h>

#include "absl/memory/memory.h"
#include "modules/congestion_controller/goog_cc/alr_detector.h"
Expand Down Expand Up @@ -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;
Expand Down
3 changes: 2 additions & 1 deletion video/video_receive_stream.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include <set>
#include <string>
#include <utility>
#include <inttypes.h>

#include "absl/memory/memory.h"
#include "absl/types/optional.h"
Expand Down Expand Up @@ -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());
Expand Down