diff options
author | Ramiro Polla <ramiro.polla@gmail.com> | 2009-04-18 20:23:13 +0000 |
---|---|---|
committer | Ramiro Polla <ramiro.polla@gmail.com> | 2009-04-18 20:23:13 +0000 |
commit | a256445ec3ef9213a94b3aa75eea786bdd2d3ace (patch) | |
tree | 9e57c25c161d95ca9346631dd9818a42c6ef1a36 /libavcodec/mlpdec.c | |
parent | f95f6ab91eb542321c829bbc85d448a0cf18e064 (diff) | |
download | ffmpeg-a256445ec3ef9213a94b3aa75eea786bdd2d3ace.tar.gz |
mlpdec: Read context variable to local variable to make code cleaner.
Originally committed as revision 18615 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mlpdec.c')
-rw-r--r-- | libavcodec/mlpdec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/mlpdec.c b/libavcodec/mlpdec.c index 7b5ad80689..bf490abbd8 100644 --- a/libavcodec/mlpdec.c +++ b/libavcodec/mlpdec.c @@ -849,6 +849,7 @@ static void rematrix_channels(MLPDecodeContext *m, unsigned int substr) /* TODO: DSPContext? */ for (i = 0; i < s->blockpos; i++) { + int32_t bypassed_lsb = m->bypassed_lsbs[i][mat]; int32_t *samples = m->sample_buffer[i]; int64_t accum = 0; @@ -861,8 +862,7 @@ static void rematrix_channels(MLPDecodeContext *m, unsigned int substr) index += index2; } - samples[dest_ch] = ((accum >> 14) & mask) - + m->bypassed_lsbs[i][mat]; + samples[dest_ch] = ((accum >> 14) & mask) + bypassed_lsb; } } } |