| Index: media/cast/net/rtp/rtp_sender.cc
|
| diff --git a/media/cast/net/rtp/rtp_sender.cc b/media/cast/net/rtp/rtp_sender.cc
|
| index 1b5f960b17f907ea928b0eff170623db40465def..2a623d2328449ca06a760e97fd4a1d968efa5709 100644
|
| --- a/media/cast/net/rtp/rtp_sender.cc
|
| +++ b/media/cast/net/rtp/rtp_sender.cc
|
| @@ -39,7 +39,14 @@ RtpSender::~RtpSender() {}
|
|
|
| bool RtpSender::Initialize(const CastTransportRtpConfig& config) {
|
| config_.ssrc = config.ssrc;
|
| - config_.payload_type = static_cast<int>(config.rtp_payload_type);
|
| + // TODO(xjz): Android TV receivers expect the |payload_type| to be one of
|
| + // these two specific values. This constraint needs to be removed and the
|
| + // value of the |payload_type| can vary according to the spec:
|
| + // https://tools.ietf.org/html/rfc3551.
|
| + if (config.rtp_payload_type <= RtpPayloadType::AUDIO_LAST)
|
| + config_.payload_type = 127;
|
| + else
|
| + config_.payload_type = 96;
|
| packetizer_.reset(new RtpPacketizer(transport_, &storage_, config_));
|
| return true;
|
| }
|
|
|