From 52b57cc0d5ae9b79c26c88c644ab18fef5b693b3 Mon Sep 17 00:00:00 2001 From: "andrew@webrtc.org" Date: Thu, 7 Mar 2013 00:45:50 +0000 Subject: [PATCH] Fix debug file buffer bug introduced in r3574. This correctly uses int16_t rather than float. Only affects the debug file buffer, not the production code path. TBR=bjornv Review URL: https://webrtc-codereview.appspot.com/1162008 git-svn-id: http://webrtc.googlecode.com/svn/trunk@3626 4adac7df-926f-26a2-2b94-8c16560cd09d --- webrtc/modules/audio_processing/aec/echo_cancellation.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webrtc/modules/audio_processing/aec/echo_cancellation.c b/webrtc/modules/audio_processing/aec/echo_cancellation.c index 6c262c928d..9b711be225 100644 --- a/webrtc/modules/audio_processing/aec/echo_cancellation.c +++ b/webrtc/modules/audio_processing/aec/echo_cancellation.c @@ -85,7 +85,7 @@ WebRtc_Word32 WebRtcAec_Create(void **aecInst) #ifdef WEBRTC_AEC_DEBUG_DUMP aecpc->far_pre_buf_s16 = WebRtc_CreateBuffer( - PART_LEN2 + kResamplerBufferSize, sizeof(float)); + PART_LEN2 + kResamplerBufferSize, sizeof(int16_t)); if (!aecpc->far_pre_buf_s16) { WebRtcAec_Free(aecpc); aecpc = NULL;