Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(89)

Unified Diff: webrtc/video/vie_encoder.cc

Issue 2763023002: Propagate input capture time in ViEEncoder::OnFrame. (Closed)
Patch Set: Undo change to FrameGenerators, only FrameGeneratorCapturer need to set timestamp. Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/test/frame_generator_capturer.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/video/vie_encoder.cc
diff --git a/webrtc/video/vie_encoder.cc b/webrtc/video/vie_encoder.cc
index a3b071ac00fb058cad52b3290d00d163550744df..76969b03718bc3d8f5731874171329b391e25abf 100644
--- a/webrtc/video/vie_encoder.cc
+++ b/webrtc/video/vie_encoder.cc
@@ -587,11 +587,7 @@ void ViEEncoder::OnFrame(const VideoFrame& video_frame) {
VideoFrame incoming_frame = video_frame;
// Local time in webrtc time base.
- int64_t current_time_us = clock_->TimeInMicroseconds();
- int64_t current_time_ms = current_time_us / rtc::kNumMicrosecsPerMillisec;
- // TODO(nisse): This always overrides the incoming timestamp. Don't
- // do that, trust the frame source.
- incoming_frame.set_timestamp_us(current_time_us);
+ int64_t current_time_ms = clock_->TimeInMilliseconds();
// Capture time may come from clock with an offset and drift from clock_.
int64_t capture_ntp_time_ms;
« no previous file with comments | « webrtc/test/frame_generator_capturer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698