1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00

dcaenc: use put_sbits()

Reviewed-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
James Almer 2015-04-17 23:25:40 -03:00
parent 6863249b34
commit b5564e041b

View File

@ -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]);
}
}
}