Revert r4321 "Fix uninitialized value warning in rtp_payload_registry and make sure we return an error if the payload type isn't registered"
R=pwestin@webrtc.org Review URL: https://webrtc-codereview.appspot.com/1790006 git-svn-id: http://webrtc.googlecode.com/svn/trunk@4345 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
b7eda43810
commit
4888fd4827
@ -103,7 +103,6 @@ int32_t RTPPayloadRegistry::RegisterReceivePayload(
|
||||
if (ModuleRTPUtility::StringCompare(payload_name, "red", 3)) {
|
||||
red_payload_type_ = payload_type;
|
||||
payload = new ModuleRTPUtility::Payload;
|
||||
memset(payload, 0, sizeof(*payload));
|
||||
payload->audio = false;
|
||||
payload->name[RTP_PAYLOAD_NAME_SIZE - 1] = 0;
|
||||
strncpy(payload->name, payload_name, RTP_PAYLOAD_NAME_SIZE - 1);
|
||||
|
@ -2184,9 +2184,6 @@ int32_t Channel::ReceivedRTPPacket(const int8_t* data, int32_t length) {
|
||||
}
|
||||
header.payload_type_frequency =
|
||||
rtp_payload_registry_->GetPayloadTypeFrequency(header.payloadType);
|
||||
if (header.payload_type_frequency < 0) {
|
||||
return -1;
|
||||
}
|
||||
bool retransmitted = IsPacketRetransmitted(header);
|
||||
bool in_order = rtp_receiver_->InOrderPacket(header.sequenceNumber);
|
||||
rtp_receive_statistics_->IncomingPacket(header, static_cast<uint16_t>(length),
|
||||
|
Loading…
Reference in New Issue
Block a user