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

Unified Diff: media/cast/sender/vp8_encoder.cc

Issue 502333002: [Cast] In Audio/VideoSender, drop frames when too-long a duration is in-flight. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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: media/cast/sender/vp8_encoder.cc
diff --git a/media/cast/sender/vp8_encoder.cc b/media/cast/sender/vp8_encoder.cc
index b43b5c881e2e81daa68b17d83aedcbb42f5b175a..f4ecb3ec1af08d871aebbf3ac006c7e1ae5dc220 100644
--- a/media/cast/sender/vp8_encoder.cc
+++ b/media/cast/sender/vp8_encoder.cc
@@ -17,7 +17,7 @@ namespace cast {
static const uint32 kMinIntra = 300;
-static int ComputeMaxNumOfRepeatedBuffes(int max_unacked_frames) {
+static int ComputeMaxNumOfRepeatedBuffers(int max_unacked_frames) {
if (max_unacked_frames > kNumberOfVp8VideoBuffers)
return (max_unacked_frames - 1) / kNumberOfVp8VideoBuffers;
@@ -31,7 +31,7 @@ Vp8Encoder::Vp8Encoder(const VideoSenderConfig& video_config,
cast_config_.max_number_of_video_buffers_used ==
kNumberOfVp8VideoBuffers),
max_number_of_repeated_buffers_in_a_row_(
- ComputeMaxNumOfRepeatedBuffes(max_unacked_frames)),
+ ComputeMaxNumOfRepeatedBuffers(max_unacked_frames)),
key_frame_requested_(true),
first_frame_received_(false),
last_encoded_frame_id_(kStartFrameId),
« media/cast/sender/rtp_timestamp_helper.h ('K') | « media/cast/sender/video_sender.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698