diff options
Diffstat (limited to 'lib/rbcodec/dsp/pbe.c')
-rw-r--r-- | lib/rbcodec/dsp/pbe.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/rbcodec/dsp/pbe.c b/lib/rbcodec/dsp/pbe.c index 28cdbb2084..3656f687fd 100644 --- a/lib/rbcodec/dsp/pbe.c +++ b/lib/rbcodec/dsp/pbe.c | |||
@@ -80,7 +80,8 @@ static void dsp_pbe_flush(void) | |||
80 | return; /* Not currently enabled */ | 80 | return; /* Not currently enabled */ |
81 | 81 | ||
82 | unsigned int total_len = (B0_SIZE + B2_SIZE + B3_SIZE) * 2; | 82 | unsigned int total_len = (B0_SIZE + B2_SIZE + B3_SIZE) * 2; |
83 | memset(core_get_data(handle),0,sizeof(int32_t) * total_len); | 83 | if (handle > 0) |
84 | memset(core_get_data(handle),0,sizeof(int32_t) * total_len); | ||
84 | b0_r[0] = 0; b0_w[0] = 0; | 85 | b0_r[0] = 0; b0_w[0] = 0; |
85 | b0_r[1] = 0; b0_w[1] = 0; | 86 | b0_r[1] = 0; b0_w[1] = 0; |
86 | b2_r[0] = 0; b2_w[0] = 0; | 87 | b2_r[0] = 0; b2_w[0] = 0; |