Browse Source

WMAL: Shift output samples by the specified number of padding zeroes.

Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
tags/n0.11
Jakub Stachowski Kostya Shishkov 13 years ago
parent
commit
ddffe3de43
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      libavcodec/wmalosslessdec.c

+ 2
- 2
libavcodec/wmalosslessdec.c View File

@@ -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…
Cancel
Save