diff options
author | Ramiro Polla <ramiro.polla@gmail.com> | 2009-03-30 03:08:55 +0000 |
---|---|---|
committer | Ramiro Polla <ramiro.polla@gmail.com> | 2009-03-30 03:08:55 +0000 |
commit | a44b9f95745895b9aae22c1e661593b98d506d24 (patch) | |
tree | a3aed4036ca4d6ad296717d40f93b2c017752afa /libavcodec/mlpdec.c | |
parent | e71365f427964597a2f53f8af6fa60a9aaecffb5 (diff) | |
download | ffmpeg-streaming-a44b9f95745895b9aae22c1e661593b98d506d24.zip ffmpeg-streaming-a44b9f95745895b9aae22c1e661593b98d506d24.tar.gz |
mlpdec: Simplify &foo[0] to foo and use index (which has just been initialized
to MAX_BLOCKSIZE) instead of MAX_BLOCKSIZE, so both copies to/from state data
look alike.
Originally committed as revision 18233 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mlpdec.c')
-rw-r--r-- | libavcodec/mlpdec.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/mlpdec.c b/libavcodec/mlpdec.c index 727d47f..05818f0 100644 --- a/libavcodec/mlpdec.c +++ b/libavcodec/mlpdec.c @@ -661,9 +661,9 @@ static void filter_channel(MLPDecodeContext *m, unsigned int substr, int index = MAX_BLOCKSIZE; int i; - memcpy(&firbuf[MAX_BLOCKSIZE], &fir->state[0], + memcpy(&firbuf[index], fir->state, MAX_FIR_ORDER * sizeof(int32_t)); - memcpy(&iirbuf[MAX_BLOCKSIZE], &iir->state[0], + memcpy(&iirbuf[index], iir->state, MAX_IIR_ORDER * sizeof(int32_t)); for (i = 0; i < s->blocksize; i++) { @@ -692,9 +692,9 @@ static void filter_channel(MLPDecodeContext *m, unsigned int substr, m->sample_buffer[i + s->blockpos][channel] = result; } - memcpy(&fir->state[0], &firbuf[index], + memcpy(fir->state, &firbuf[index], MAX_FIR_ORDER * sizeof(int32_t)); - memcpy(&iir->state[0], &iirbuf[index], + memcpy(iir->state, &iirbuf[index], MAX_IIR_ORDER * sizeof(int32_t)); } |