Commit b5564e04 authored by James Almer's avatar James Almer

dcaenc: use put_sbits()

Reviewed-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
Signed-off-by: 's avatarJames Almer <jamrial@gmail.com>
parent 6863249b
......@@ -847,8 +847,7 @@ static void put_subframe_samples(DCAEncContext *c, int ss, int band, int ch)
int i;
for (i = 0; i < 8; i++) {
int bits = bit_consumption[c->abits[band][ch]] / 16;
int32_t mask = (1 << bits) - 1;
put_bits(&c->pb, bits, c->quantized[ss * 8 + i][band][ch] & mask);
put_sbits(&c->pb, bits, c->quantized[ss * 8 + i][band][ch]);
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment