The PCM codecs can never fail, so we don't need to check the return value

R=kwiberg@webrtc.org

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

Cr-Commit-Position: refs/heads/master@{#8413}
git-svn-id: http://webrtc.googlecode.com/svn/trunk@8413 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
jmarusic@webrtc.org 2015-02-18 15:02:27 +00:00
parent 78619e2714
commit b255865e6e

View File

@ -78,11 +78,10 @@ bool AudioEncoderPcm::EncodeInternal(uint32_t rtp_timestamp,
}
CHECK_EQ(speech_buffer_.size(), static_cast<size_t>(full_frame_samples_));
int16_t ret = EncodeCall(&speech_buffer_[0], full_frame_samples_, encoded);
DCHECK_GE(ret, 0);
speech_buffer_.clear();
info->encoded_timestamp = first_timestamp_in_buffer_;
info->payload_type = payload_type_;
if (ret < 0)
return false;
info->encoded_bytes = static_cast<size_t>(ret);
return true;
}