summaryrefslogtreecommitdiff
path: root/libavcodec/alac.c
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2012-07-09 11:07:57 -0400
committerJustin Ruggles <justin.ruggles@gmail.com>2012-07-19 13:26:46 -0400
commit79def4c523a1ebb4222c79f5dbf054d7bb4a5f01 (patch)
tree23c231e396a696ba465e5096acb1802286d39544 /libavcodec/alac.c
parent4bcd637dcbae78ab419d61164e80438f5925030d (diff)
alac: remove unneeded conditionals in predictor_decompress_fir_adapt()
Diffstat (limited to 'libavcodec/alac.c')
-rw-r--r--libavcodec/alac.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/libavcodec/alac.c b/libavcodec/alac.c
index 483346c255..027e094c18 100644
--- a/libavcodec/alac.c
+++ b/libavcodec/alac.c
@@ -199,7 +199,6 @@ static void predictor_decompress_fir_adapt(int32_t *error_buffer,
}
/* read warm-up samples */
- if (predictor_coef_num > 0)
for (i = 0; i < predictor_coef_num; i++) {
int32_t val;
@@ -211,7 +210,6 @@ static void predictor_decompress_fir_adapt(int32_t *error_buffer,
/* NOTE: 4 and 8 are very common cases that could be optimized. */
/* general case */
- if (predictor_coef_num > 0) {
for (i = predictor_coef_num + 1; i < output_size; i++) {
int j;
int sum = 0;
@@ -266,7 +264,6 @@ static void predictor_decompress_fir_adapt(int32_t *error_buffer,
buffer_out++;
}
- }
}
static void decorrelate_stereo(int32_t *buffer[MAX_CHANNELS],