Guarding certain operations, e.g. bandwidth estimation, RTCP statistics update etc., not to be run on sync RTPS.

BUG=issue1770
R=tina.legrand@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/1485004

git-svn-id: http://webrtc.googlecode.com/svn/trunk@4052 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
turaj@webrtc.org
2013-05-16 23:54:54 +00:00
parent fe307e1332
commit 8630cfe016
3 changed files with 44 additions and 13 deletions

View File

@ -16,9 +16,9 @@
#include <string.h>
#include "signal_processing_library.h"
#include "mcu_dsp_common.h"
#include "neteq_error_codes.h"
#include "signal_processing_library.h"
int WebRtcNetEQ_SplitAndInsertPayload(RTPPacket_t* packet,
PacketBuf_t* Buffer_inst,
@ -33,6 +33,8 @@ int WebRtcNetEQ_SplitAndInsertPayload(RTPPacket_t* packet,
RTPPacket_t temp_packet;
int16_t localFlushed = 0;
const int16_t *pw16_startPayload;
const int is_sync_rtp = av_sync &&
WebRtcNetEQ_IsSyncPayload(packet->payload, packet->payloadLen);
*flushed = 0;
len = packet->payloadLen;
@ -41,7 +43,8 @@ int WebRtcNetEQ_SplitAndInsertPayload(RTPPacket_t* packet,
WEBRTC_SPL_MEMCPY_W8(&temp_packet,packet,sizeof(RTPPacket_t));
if (split_inst->deltaBytes == NO_SPLIT)
if (split_inst->deltaBytes == NO_SPLIT ||
is_sync_rtp) /* Don't split sync RTPs just insert. */
{
/* Not splittable codec */
i_ok = WebRtcNetEQ_PacketBufferInsert(Buffer_inst, packet,