summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRamiro Polla <ramiro.polla@gmail.com>2008-08-12 18:05:58 +0000
committerRamiro Polla <ramiro.polla@gmail.com>2008-08-12 18:05:58 +0000
commitdb01fa131b92a807b16ca568d8ff4e4b673f03fa (patch)
treee4e089df335112e90baed2639695b6513fd5bb12
parentd6aa052dc5a5e540ca16e806c9b0c05341f0b0e7 (diff)
mlpdec: whitespace and line-breaking cosmetics.
Originally committed as revision 14717 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/mlpdec.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/libavcodec/mlpdec.c b/libavcodec/mlpdec.c
index 5bb532cbcb..1d470f00fd 100644
--- a/libavcodec/mlpdec.c
+++ b/libavcodec/mlpdec.c
@@ -584,8 +584,7 @@ static int read_filter_params(MLPDecodeContext *m, GetBitContext *gbp,
}
for (i = 0; i < order; i++)
- fp->coeff[i] =
- get_sbits(gbp, coeff_bits) << coeff_shift;
+ fp->coeff[i] = get_sbits(gbp, coeff_bits) << coeff_shift;
if (get_bits1(gbp)) {
int state_bits, state_shift;
@@ -602,8 +601,7 @@ static int read_filter_params(MLPDecodeContext *m, GetBitContext *gbp,
/* TODO: Check validity of state data. */
for (i = 0; i < order; i++)
- fp->state[i] =
- get_sbits(gbp, state_bits) << state_shift;
+ fp->state[i] = get_sbits(gbp, state_bits) << state_shift;
}
}
@@ -753,8 +751,7 @@ static void filter_channel(MLPDecodeContext *m, unsigned int substr,
int j, i;
for (j = 0; j < NUM_FILTERS; j++) {
- memcpy(& filter_state_buffer [j][MAX_BLOCKSIZE],
- &fp[j]->state[0],
+ memcpy(&filter_state_buffer[j][MAX_BLOCKSIZE], &fp[j]->state[0],
MAX_FILTER_ORDER * sizeof(int32_t));
}
@@ -769,7 +766,7 @@ static void filter_channel(MLPDecodeContext *m, unsigned int substr,
for (j = 0; j < NUM_FILTERS; j++)
for (order = 0; order < fp[j]->order; order++)
accum += (int64_t)filter_state_buffer[j][index + order] *
- fp[j]->coeff[order];
+ fp[j]->coeff[order];
accum = accum >> filter_shift;
result = (accum + residual) & mask;
@@ -783,8 +780,7 @@ static void filter_channel(MLPDecodeContext *m, unsigned int substr,
}
for (j = 0; j < NUM_FILTERS; j++) {
- memcpy(&fp[j]->state[0],
- & filter_state_buffer [j][index],
+ memcpy(&fp[j]->state[0], &filter_state_buffer[j][index],
MAX_FILTER_ORDER * sizeof(int32_t));
}
}