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

Unified Diff: media/cast/transport/cast_transport_config.cc

Issue 280993002: [Cast] Repair receiver playout time calculations and frame skip logic. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
Index: media/cast/transport/cast_transport_config.cc
diff --git a/media/cast/transport/cast_transport_config.cc b/media/cast/transport/cast_transport_config.cc
index b6dba5215043ab8acbf68a813fce718f318cbe2e..22903413ccee5305cd01693fa37dcee43e17953f 100644
--- a/media/cast/transport/cast_transport_config.cc
+++ b/media/cast/transport/cast_transport_config.cc
@@ -12,6 +12,29 @@ namespace {
const int kDefaultRtpMaxDelayMs = 100;
} // namespace
+bool CanDropFramesForCodec(AudioCodec audio_codec) {
+ switch (audio_codec) {
+ case kFakeSoftwareAudio:
+ case kOpus:
+ case kPcm16:
+ return true;
+ }
+ NOTREACHED();
+ return true;
+}
+
+bool CanDropFramesForCodec(VideoCodec video_codec) {
+ switch (video_codec) {
+ case kFakeSoftwareVideo:
+ return true;
+ case kVp8:
+ case kH264:
+ return false;
+ }
+ NOTREACHED();
+ return true;
+}
+
RtpConfig::RtpConfig()
: ssrc(0),
max_delay_ms(kDefaultRtpMaxDelayMs),

Powered by Google App Engine
This is Rietveld 408576698