mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-09 14:14:39 +02: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++) {
|
for (j = 0; j < subframe_len; j++) {
|
||||||
if (s->bits_per_sample == 16) {
|
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;
|
s->samples_16[c] += s->num_channels;
|
||||||
} else {
|
} 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;
|
s->samples_32[c] += s->num_channels;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user