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

Unified Diff: media/cast/video_sender/fake_software_video_encoder.cc

Issue 289083002: Cast: Add tests for clocks being slow/fast (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 6 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 | « media/cast/test/utility/udp_proxy.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/video_sender/fake_software_video_encoder.cc
diff --git a/media/cast/video_sender/fake_software_video_encoder.cc b/media/cast/video_sender/fake_software_video_encoder.cc
index 0df0d6e6429d2f213806f96e90fbfc1ee743b772..3afd858e2cc559acf1a1fb720889510408175fb7 100644
--- a/media/cast/video_sender/fake_software_video_encoder.cc
+++ b/media/cast/video_sender/fake_software_video_encoder.cc
@@ -30,7 +30,7 @@ bool FakeSoftwareVideoEncoder::Encode(
encoded_image->key_frame = next_frame_is_key_;
next_frame_is_key_ = false;
encoded_image->frame_id = frame_id_++;
- encoded_image->last_referenced_frame_id = frame_id_to_reference_;
+ encoded_image->last_referenced_frame_id = encoded_image->frame_id - 1;
base::DictionaryValue values;
values.Set("key", base::Value::CreateBooleanValue(encoded_image->key_frame));
« no previous file with comments | « media/cast/test/utility/udp_proxy.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698