mlpdec: Read context variable to local variable to make code cleaner.
Originally committed as revision 18615 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
f95f6ab91e
commit
a256445ec3
@ -849,6 +849,7 @@ static void rematrix_channels(MLPDecodeContext *m, unsigned int substr)
|
|||||||
/* TODO: DSPContext? */
|
/* TODO: DSPContext? */
|
||||||
|
|
||||||
for (i = 0; i < s->blockpos; i++) {
|
for (i = 0; i < s->blockpos; i++) {
|
||||||
|
int32_t bypassed_lsb = m->bypassed_lsbs[i][mat];
|
||||||
int32_t *samples = m->sample_buffer[i];
|
int32_t *samples = m->sample_buffer[i];
|
||||||
int64_t accum = 0;
|
int64_t accum = 0;
|
||||||
|
|
||||||
@ -861,8 +862,7 @@ static void rematrix_channels(MLPDecodeContext *m, unsigned int substr)
|
|||||||
index += index2;
|
index += index2;
|
||||||
}
|
}
|
||||||
|
|
||||||
samples[dest_ch] = ((accum >> 14) & mask)
|
samples[dest_ch] = ((accum >> 14) & mask) + bypassed_lsb;
|
||||||
+ m->bypassed_lsbs[i][mat];
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user