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

Side by Side Diff: webrtc/modules/audio_coding/codecs/isac/main/source/encode_lpc_swb.c

Issue 1406423004: Workaround for false positive -Wmaybe-uninitialized being triggered on some compilers (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 years, 2 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after
433 int16_t 433 int16_t
434 WebRtcIsac_CorrelateInterVec( 434 WebRtcIsac_CorrelateInterVec(
435 const double* data, 435 const double* data,
436 double* out, 436 double* out,
437 int16_t bandwidth) 437 int16_t bandwidth)
438 { 438 {
439 int16_t coeffCntr; 439 int16_t coeffCntr;
440 int16_t rowCntr; 440 int16_t rowCntr;
441 int16_t colCntr; 441 int16_t colCntr;
442 int16_t interVecDim; 442 int16_t interVecDim;
443 double myVec[UB16_LPC_VEC_PER_FRAME]; 443 double myVec[UB16_LPC_VEC_PER_FRAME] = {0.0};
444 const double* interVecDecorrMat; 444 const double* interVecDecorrMat;
445 445
446 switch(bandwidth) 446 switch(bandwidth)
447 { 447 {
448 case isac12kHz: 448 case isac12kHz:
449 { 449 {
450 interVecDim = UB_LPC_VEC_PER_FRAME; 450 interVecDim = UB_LPC_VEC_PER_FRAME;
451 interVecDecorrMat = &WebRtcIsac_kInterVecDecorrMatUb12[0][0]; 451 interVecDecorrMat = &WebRtcIsac_kInterVecDecorrMatUb12[0][0];
452 break; 452 break;
453 } 453 }
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
699 int16_t WebRtcIsac_AddMeanToLinearDomain( 699 int16_t WebRtcIsac_AddMeanToLinearDomain(
700 double* lpcGains) 700 double* lpcGains)
701 { 701 {
702 int16_t coeffCntr; 702 int16_t coeffCntr;
703 for(coeffCntr = 0; coeffCntr < UB_LPC_GAIN_DIM; coeffCntr++) 703 for(coeffCntr = 0; coeffCntr < UB_LPC_GAIN_DIM; coeffCntr++)
704 { 704 {
705 lpcGains[coeffCntr] = exp(lpcGains[coeffCntr] + WebRtcIsac_kMeanLpcGain); 705 lpcGains[coeffCntr] = exp(lpcGains[coeffCntr] + WebRtcIsac_kMeanLpcGain);
706 } 706 }
707 return 0; 707 return 0;
708 } 708 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698