Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(227)

Unified Diff: webrtc/modules/audio_coding/codecs/g722/audio_encoder_g722.cc

Issue 1174813003: Prepare to convert various types to size_t. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Review comments + resync Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/modules/audio_coding/codecs/g722/audio_encoder_g722.cc
diff --git a/webrtc/modules/audio_coding/codecs/g722/audio_encoder_g722.cc b/webrtc/modules/audio_coding/codecs/g722/audio_encoder_g722.cc
index effb4058f4d6ac853104e9823186e8150b96eb62..8e10dffe8e88ed5e7100b9eb350338db7015a9a0 100644
--- a/webrtc/modules/audio_coding/codecs/g722/audio_encoder_g722.cc
+++ b/webrtc/modules/audio_coding/codecs/g722/audio_encoder_g722.cc
@@ -24,7 +24,8 @@ const int kSampleRateHz = 16000;
} // namespace
bool AudioEncoderG722::Config::IsOk() const {
- return (frame_size_ms % 10 == 0) && (num_channels >= 1);
+ return (frame_size_ms > 0) && (frame_size_ms % 10 == 0) &&
+ (num_channels >= 1);
}
AudioEncoderG722::EncoderState::EncoderState() {
« no previous file with comments | « webrtc/modules/audio_coding/codecs/g711/test/testG711.cc ('k') | webrtc/modules/audio_coding/codecs/g722/test/testG722.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698