Fixes build warnings due to unused variables.

Code directly from http://code.google.com/p/webrtc/issues/detail?id=58.
Review URL: http://webrtc-codereview.appspot.com/119007

git-svn-id: http://webrtc.googlecode.com/svn/trunk@428 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
hellner@google.com 2011-08-23 21:26:09 +00:00
parent 9aa9996a19
commit a386fc0a8b
2 changed files with 5 additions and 8 deletions

View File

@ -1463,7 +1463,7 @@ RTPSender::RED(WebRtc_Word8& payloadType) const
{ {
if(!_audioConfigured) if(!_audioConfigured)
{ {
return NULL; return 0;
} }
return _audio->RED(payloadType); return _audio->RED(payloadType);
} }

View File

@ -634,9 +634,6 @@ ModuleRTPUtility::RTPPayloadParser::ParseH263(RTPPayload& parsedPacket) const
const WebRtc_UWord8 header1 = _dataPtr[0]; const WebRtc_UWord8 header1 = _dataPtr[0];
const WebRtc_UWord8 header2 = _dataPtr[1]; const WebRtc_UWord8 header2 = _dataPtr[1];
bool modeA = false;
bool modeB = false;
bool modeC = false;
parsedPacket.frameType = ((header2 & 0x10) == 0) ? kIFrame : kPFrame; parsedPacket.frameType = ((header2 & 0x10) == 0) ? kIFrame : kPFrame;
@ -644,7 +641,6 @@ ModuleRTPUtility::RTPPayloadParser::ParseH263(RTPPayload& parsedPacket) const
if ((header1 & 0x80) == 0) if ((header1 & 0x80) == 0)
{ {
// Mode A // Mode A
modeA = true;
h263HeaderLength = 4; h263HeaderLength = 4;
} }
else else
@ -655,12 +651,13 @@ ModuleRTPUtility::RTPPayloadParser::ParseH263(RTPPayload& parsedPacket) const
if((header1 & 0x40) == 0) if((header1 & 0x40) == 0)
{ {
// IMPROVEMENT use the information in the H263 header? GQuant of the first MB // Mode B
modeB = true; // IMPROVEMENT use the information in the H263 header?
// GQuant of the first MB
h263HeaderLength = 8; h263HeaderLength = 8;
}else }else
{ {
modeC = true; // Mode C
h263HeaderLength = 12; h263HeaderLength = 12;
} }
} }