mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-29 22:40:23 +00:00
WMAL: Shift output samples by the specified number of padding zeroes.
Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
This commit is contained in:
parent
363c3a44ff
commit
ddffe3de43
@ -979,10 +979,10 @@ static int decode_subframe(WmallDecodeCtx *s)
|
||||
|
||||
for (j = 0; j < subframe_len; j++) {
|
||||
if (s->bits_per_sample == 16) {
|
||||
*s->samples_16[c] = (int16_t) s->channel_residues[c][j];
|
||||
*s->samples_16[c] = (int16_t) s->channel_residues[c][j] << padding_zeroes;
|
||||
s->samples_16[c] += s->num_channels;
|
||||
} else {
|
||||
*s->samples_32[c] = s->channel_residues[c][j];
|
||||
*s->samples_32[c] = s->channel_residues[c][j] << padding_zeroes;
|
||||
s->samples_32[c] += s->num_channels;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user