... | ... |
@@ -173,10 +173,10 @@ static void predictor_decompress_fir_adapt(int32_t *error_buffer, |
173 | 173 |
/* first sample always copies */ |
174 | 174 |
*buffer_out = *error_buffer; |
175 | 175 |
|
176 |
- if (!predictor_coef_num) { |
|
177 |
- if (output_size <= 1) |
|
178 |
- return; |
|
176 |
+ if (output_size <= 1) |
|
177 |
+ return; |
|
179 | 178 |
|
179 |
+ if (!predictor_coef_num) { |
|
180 | 180 |
memcpy(&buffer_out[1], &error_buffer[1], |
181 | 181 |
(output_size - 1) * sizeof(*buffer_out)); |
182 | 182 |
return; |
... | ... |
@@ -184,8 +184,6 @@ static void predictor_decompress_fir_adapt(int32_t *error_buffer, |
184 | 184 |
|
185 | 185 |
if (predictor_coef_num == 31) { |
186 | 186 |
/* simple 1st-order prediction */ |
187 |
- if (output_size <= 1) |
|
188 |
- return; |
|
189 | 187 |
for (i = 1; i < output_size; i++) { |
190 | 188 |
buffer_out[i] = sign_extend(buffer_out[i - 1] + error_buffer[i], |
191 | 189 |
readsamplesize); |