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

Unified Diff: media/cast/receiver/frame_receiver.cc

Issue 2179943004: Set the RTP payload type to fixed values for audio/video streams. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix chromium receiver. Created 4 years, 5 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/net/rtp/rtp_sender.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/receiver/frame_receiver.cc
diff --git a/media/cast/receiver/frame_receiver.cc b/media/cast/receiver/frame_receiver.cc
index 8787f09dbd1a938eb5027f88386d1798ee6df0ab..257862e9460bfd3372ff7aad4c4332f4fab11fde 100644
--- a/media/cast/receiver/frame_receiver.cc
+++ b/media/cast/receiver/frame_receiver.cc
@@ -40,8 +40,9 @@ FrameReceiver::FrameReceiver(
CastTransport* const transport)
: cast_environment_(cast_environment),
transport_(transport),
- packet_parser_(config.sender_ssrc,
- static_cast<uint8_t>(config.rtp_payload_type)),
+ packet_parser_(
+ config.sender_ssrc,
+ config.rtp_payload_type <= RtpPayloadType::AUDIO_LAST ? 127 : 96),
stats_(cast_environment->Clock()),
event_media_type_(event_media_type),
event_subscriber_(kReceiverRtcpEventHistorySize, event_media_type),
« no previous file with comments | « media/cast/net/rtp/rtp_sender.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698