aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Stachowski <qbast@go2.pl>2012-05-03 19:36:48 +0200
committerKostya Shishkov <kostya.shishkov@gmail.com>2012-05-05 12:38:54 +0200
commitddffe3de4352eb025b78843cf3b44501056b54bb (patch)
tree676edda8a1f385f4ea9aac56dad3d7eaffa32523
parent363c3a44ff9afbf85fc2c4ba460173e39b0d043c (diff)
downloadffmpeg-ddffe3de4352eb025b78843cf3b44501056b54bb.tar.gz
WMAL: Shift output samples by the specified number of padding zeroes.
Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
-rw-r--r--libavcodec/wmalosslessdec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/wmalosslessdec.c b/libavcodec/wmalosslessdec.c
index 7510b12ef9..d4c9c5a828 100644
--- a/libavcodec/wmalosslessdec.c
+++ b/libavcodec/wmalosslessdec.c
@@ -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;
}
}