From 4f390000ddcd8f8afed5f1f593b4343795560a15 Mon Sep 17 00:00:00 2001 From: "andrew@webrtc.org" Date: Wed, 24 Aug 2011 20:35:35 +0000 Subject: [PATCH] Fix warnings on Ubuntu 11.04 (gcc 4.5) http://code.google.com/p/webrtc/issues/detail?id=63 Review URL: http://webrtc-codereview.appspot.com/125004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@439 4adac7df-926f-26a2-2b94-8c16560cd09d --- src/modules/audio_coding/NetEQ/main/source/automode.c | 2 +- src/modules/rtp_rtcp/source/rtp_sender.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/audio_coding/NetEQ/main/source/automode.c b/src/modules/audio_coding/NetEQ/main/source/automode.c index 7d9f03549..be5758d6a 100644 --- a/src/modules/audio_coding/NetEQ/main/source/automode.c +++ b/src/modules/audio_coding/NetEQ/main/source/automode.c @@ -449,7 +449,7 @@ WebRtc_Word16 WebRtcNetEQ_CalcOptimalBufLvl(AutomodeInst_t *inst, WebRtc_Word32 (WebRtc_Word16) WEBRTC_SPL_MIN(timeIatPkts, WEBRTC_SPL_WORD16_MAX); /* increment peakIndex and wrap/modulo */ - inst->peakIndex = ++inst->peakIndex & PEAK_INDEX_MASK; + inst->peakIndex = (inst->peakIndex + 1) & PEAK_INDEX_MASK; /* process peak vectors */ inst->curPeakHeight = 0; diff --git a/src/modules/rtp_rtcp/source/rtp_sender.cc b/src/modules/rtp_rtcp/source/rtp_sender.cc index eb7222cc1..a93ecf775 100644 --- a/src/modules/rtp_rtcp/source/rtp_sender.cc +++ b/src/modules/rtp_rtcp/source/rtp_sender.cc @@ -1463,7 +1463,7 @@ RTPSender::RED(WebRtc_Word8& payloadType) const { if(!_audioConfigured) { - return 0; + return -1; } return _audio->RED(payloadType); }