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

Unified Diff: webrtc/modules/video_coding/main/source/test/stream_generator.cc

Issue 1173253008: Unit Test For VCMReceiver::FrameForDecoding Timing Test (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 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
« no previous file with comments | « webrtc/modules/video_coding/main/source/test/stream_generator.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/video_coding/main/source/test/stream_generator.cc
diff --git a/webrtc/modules/video_coding/main/source/test/stream_generator.cc b/webrtc/modules/video_coding/main/source/test/stream_generator.cc
index e747db419c67a2831c306bf702c370d1a6d6cd7b..dcf9b6860245ef20e7f086478c6e827ed6fe9680 100644
--- a/webrtc/modules/video_coding/main/source/test/stream_generator.cc
+++ b/webrtc/modules/video_coding/main/source/test/stream_generator.cc
@@ -35,8 +35,8 @@ void StreamGenerator::Init(uint16_t start_seq_num, int64_t current_time) {
void StreamGenerator::GenerateFrame(FrameType type,
int num_media_packets,
int num_empty_packets,
- int64_t current_time) {
- uint32_t timestamp = 90 * (current_time - start_time_);
+ int64_t time_ms) {
+ uint32_t timestamp = 90 * (time_ms - start_time_);
for (int i = 0; i < num_media_packets; ++i) {
const int packet_size =
(kFrameSize + num_media_packets / 2) / num_media_packets;
« no previous file with comments | « webrtc/modules/video_coding/main/source/test/stream_generator.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698