diff --git a/webrtc/modules/remote_bitrate_estimator/tools/rtp_to_text.cc b/webrtc/modules/remote_bitrate_estimator/tools/rtp_to_text.cc index 13a15c751b..461c3863c0 100644 --- a/webrtc/modules/remote_bitrate_estimator/tools/rtp_to_text.cc +++ b/webrtc/modules/remote_bitrate_estimator/tools/rtp_to_text.cc @@ -9,6 +9,7 @@ */ #include +#include #include "webrtc/modules/remote_bitrate_estimator/tools/bwe_rtp.h" #include "webrtc/modules/rtp_rtcp/interface/rtp_header_parser.h" @@ -58,7 +59,9 @@ int main(int argc, char** argv) { if (header.extension.transmissionTimeOffset != 0) ++non_zero_ts_offsets; if (arrival_time_only) { - fprintf(stdout, "%ld\n", static_cast(time_ms) * 1000000); + std::stringstream ss; + ss << static_cast(time_ms) * 1000000; + fprintf(stdout, "%s\n", ss.str().c_str()); } else { fprintf(stdout, "%u %u %d %u %u %d %u %u\n", header.sequenceNumber, header.timestamp, header.extension.transmissionTimeOffset,