diff options
author | Ramiro Polla <ramiro.polla@gmail.com> | 2009-03-30 03:12:39 +0000 |
---|---|---|
committer | Ramiro Polla <ramiro.polla@gmail.com> | 2009-03-30 03:12:39 +0000 |
commit | 06e34be88f31175cd4ae3cea987641c28bc86bb3 (patch) | |
tree | 9b11c8ad0b0cfbe0dfa3358a9fbdd2d944264861 /libavcodec/mlpdec.c | |
parent | a44b9f95745895b9aae22c1e661593b98d506d24 (diff) | |
download | ffmpeg-streaming-06e34be88f31175cd4ae3cea987641c28bc86bb3.zip ffmpeg-streaming-06e34be88f31175cd4ae3cea987641c28bc86bb3.tar.gz |
mlpdec: whitespace cosmetics.
Originally committed as revision 18234 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mlpdec.c')
-rw-r--r-- | libavcodec/mlpdec.c | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/libavcodec/mlpdec.c b/libavcodec/mlpdec.c index 05818f0..4b152a8 100644 --- a/libavcodec/mlpdec.c +++ b/libavcodec/mlpdec.c @@ -661,10 +661,8 @@ static void filter_channel(MLPDecodeContext *m, unsigned int substr, int index = MAX_BLOCKSIZE; int i; - memcpy(&firbuf[index], fir->state, - MAX_FIR_ORDER * sizeof(int32_t)); - memcpy(&iirbuf[index], iir->state, - MAX_IIR_ORDER * sizeof(int32_t)); + memcpy(&firbuf[index], fir->state, MAX_FIR_ORDER * sizeof(int32_t)); + memcpy(&iirbuf[index], iir->state, MAX_IIR_ORDER * sizeof(int32_t)); for (i = 0; i < s->blocksize; i++) { int32_t residual = m->sample_buffer[i + s->blockpos][channel]; @@ -675,11 +673,9 @@ static void filter_channel(MLPDecodeContext *m, unsigned int substr, /* TODO: Move this code to DSPContext? */ for (order = 0; order < fir->order; order++) - accum += (int64_t)firbuf[index + order] * - fir->coeff[order]; + accum += (int64_t) firbuf[index + order] * fir->coeff[order]; for (order = 0; order < iir->order; order++) - accum += (int64_t)iirbuf[index + order] * - iir->coeff[order]; + accum += (int64_t) iirbuf[index + order] * iir->coeff[order]; accum = accum >> filter_shift; result = (accum + residual) & mask; @@ -692,10 +688,8 @@ static void filter_channel(MLPDecodeContext *m, unsigned int substr, m->sample_buffer[i + s->blockpos][channel] = result; } - memcpy(fir->state, &firbuf[index], - MAX_FIR_ORDER * sizeof(int32_t)); - memcpy(iir->state, &iirbuf[index], - MAX_IIR_ORDER * sizeof(int32_t)); + memcpy(fir->state, &firbuf[index], MAX_FIR_ORDER * sizeof(int32_t)); + memcpy(iir->state, &iirbuf[index], MAX_IIR_ORDER * sizeof(int32_t)); } /** Read a block of PCM residual data (or actual if no filtering active). */ |