DCHECK: Reference condition parameter in release builds
So that caller's won't get warnings about unused variables for variables that are only used in calls to DCHECK, such as int x = ... DCHECK_EQ(x, 17); R=andrew@webrtc.org Previously committed: https://code.google.com/p/webrtc/source/detail?r=7858 and reverted: https://code.google.com/p/webrtc/source/detail?r=7859 Review URL: https://webrtc-codereview.appspot.com/31169004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@7869 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@@ -60,7 +60,7 @@ bool AudioEncoderIlbc::EncodeInternal(uint32_t timestamp,
|
||||
EncodedInfo* info) {
|
||||
const size_t expected_output_len =
|
||||
num_10ms_frames_per_packet_ == 2 ? 38 : 50;
|
||||
CHECK_GE(max_encoded_bytes, expected_output_len);
|
||||
DCHECK_GE(max_encoded_bytes, expected_output_len);
|
||||
|
||||
// Save timestamp if starting a new packet.
|
||||
if (num_10ms_frames_buffered_ == 0)
|
||||
|
||||
Reference in New Issue
Block a user