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

Unified Diff: webrtc/modules/audio_coding/codecs/isac/fix/test/kenny.cc

Issue 1235643003: Miscellaneous changes split from https://codereview.webrtc.org/1230503003 . (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Resync Created 5 years, 5 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/isac/fix/test/kenny.cc
diff --git a/webrtc/modules/audio_coding/codecs/isac/fix/test/kenny.cc b/webrtc/modules/audio_coding/codecs/isac/fix/test/kenny.cc
index ab7c640eedd326aa24d8c82627906a98de07e41d..2628f1f4320a5030d1f57440c8f8847d19d60aea 100644
--- a/webrtc/modules/audio_coding/codecs/isac/fix/test/kenny.cc
+++ b/webrtc/modules/audio_coding/codecs/isac/fix/test/kenny.cc
@@ -624,8 +624,8 @@ int main(int argc, char* argv[])
errtype=WebRtcIsacfix_GetErrorCode(ISAC_main_inst);
printf("\nError in encoder: %d.\n", errtype);
} else {
- if (fwrite(streamdata, sizeof(char),
- stream_len, outbits) != (size_t)stream_len) {
+ if (fwrite(streamdata, sizeof(char), stream_len, outbits) !=
+ (size_t)stream_len) {
return -1;
}
}
@@ -731,12 +731,12 @@ int main(int argc, char* argv[])
/* iSAC decoding */
if( lostFrame && framecnt > 0) {
if (nbTest !=2) {
- declen = WebRtcIsacfix_DecodePlc(ISAC_main_inst,
- decoded, prevFrameSize );
+ declen =
+ WebRtcIsacfix_DecodePlc(ISAC_main_inst, decoded, prevFrameSize);
} else {
#ifdef WEBRTC_ISAC_FIX_NB_CALLS_ENABLED
- declen = WebRtcIsacfix_DecodePlcNb(ISAC_main_inst, decoded,
- prevFrameSize );
+ declen = WebRtcIsacfix_DecodePlcNb(
+ ISAC_main_inst, decoded, prevFrameSize);
#else
declen = -1;
#endif
@@ -755,7 +755,7 @@ int main(int argc, char* argv[])
decoded,
speechType);
/* Error check */
- if (err<0 || declen<0 || FL!=declen) {
+ if (err < 0 || declen < 0 || FL != declen) {
errtype=WebRtcIsacfix_GetErrorCode(ISAC_main_inst);
printf("\nError in decode_B/or getFrameLen: %d.\n", errtype);
}

Powered by Google App Engine
This is Rietveld 408576698