Use ByteReader/ByteWriter instead of rtputility and manual shift/add.
BUG= R=stefan@webrtc.org Review URL: https://webrtc-codereview.appspot.com/41289004 Cr-Commit-Position: refs/heads/master@{#8761} git-svn-id: http://webrtc.googlecode.com/svn/trunk@8761 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@ -13,8 +13,8 @@
|
||||
#include <assert.h>
|
||||
|
||||
#include "webrtc/base/scoped_ptr.h"
|
||||
#include "webrtc/modules/rtp_rtcp/source/byte_io.h"
|
||||
#include "webrtc/modules/rtp_rtcp/source/rtp_receiver_video.h"
|
||||
#include "webrtc/modules/rtp_rtcp/source/rtp_utility.h"
|
||||
#include "webrtc/system_wrappers/interface/critical_section_wrapper.h"
|
||||
#include "webrtc/system_wrappers/interface/logging.h"
|
||||
|
||||
@ -179,7 +179,7 @@ int32_t FecReceiverImpl::AddReceivedRedPacket(
|
||||
payload_data_length - REDHeaderLength);
|
||||
received_packet->pkt->length = payload_data_length - REDHeaderLength;
|
||||
received_packet->ssrc =
|
||||
RtpUtility::BufferToUWord32(&incoming_rtp_packet[8]);
|
||||
ByteReader<uint32_t>::ReadBigEndian(&incoming_rtp_packet[8]);
|
||||
|
||||
} else {
|
||||
// copy the RTP header
|
||||
|
||||
Reference in New Issue
Block a user