diff options
Diffstat (limited to 'lib/rbcodec/dsp/surround.c')
-rw-r--r-- | lib/rbcodec/dsp/surround.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/rbcodec/dsp/surround.c b/lib/rbcodec/dsp/surround.c index 26d12b1952..b2995de49f 100644 --- a/lib/rbcodec/dsp/surround.c +++ b/lib/rbcodec/dsp/surround.c | |||
@@ -97,7 +97,8 @@ static void dsp_surround_flush(void) | |||
97 | return; | 97 | return; |
98 | 98 | ||
99 | unsigned int total_len = B0_DLY + B2_DLY + BB_DLY + HH_DLY + CL_DLY; | 99 | unsigned int total_len = B0_DLY + B2_DLY + BB_DLY + HH_DLY + CL_DLY; |
100 | memset(core_get_data(handle),0,sizeof(int32_t) * total_len); | 100 | if (handle > 0) |
101 | memset(core_get_data(handle),0,sizeof(int32_t) * total_len); | ||
101 | } | 102 | } |
102 | 103 | ||
103 | static void surround_update_filter(unsigned int fout) | 104 | static void surround_update_filter(unsigned int fout) |