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

Unified Diff: webrtc/media/engine/webrtcvideoframefactory.cc

Issue 2017443003: Implement timestamp translation/filter in VideoCapturer. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Simplify filter reset. Drop hack to detect if camera time and system time are the same. Created 4 years, 6 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
Index: webrtc/media/engine/webrtcvideoframefactory.cc
diff --git a/webrtc/media/engine/webrtcvideoframefactory.cc b/webrtc/media/engine/webrtcvideoframefactory.cc
index 2c08c63129c6c28303a743d5122bf69d6e0f57d3..17c985f595a73ca3c544b0288abc0a9b2a0b4590 100644
--- a/webrtc/media/engine/webrtcvideoframefactory.cc
+++ b/webrtc/media/engine/webrtcvideoframefactory.cc
@@ -24,6 +24,7 @@ VideoFrame* WebRtcVideoFrameFactory::CreateAliasedFrame(
"Failed to create WebRtcVideoFrame in CreateAliasedFrame.";
return NULL;
}
+ frame->set_timestamp_us(frame->timestamp_us() + timestamp_offset_us_);
return frame.release();
}
« webrtc/media/base/videocapturer.cc ('K') | « webrtc/media/base/videoframefactory.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698