Commit 1193d3fe authored by Justin Ruggles's avatar Justin Ruggles
Browse files

alac: use get_sbits() to read LPC coefficients instead of casting

parent 7a50ec67
...@@ -366,7 +366,7 @@ static int alac_decode_frame(AVCodecContext *avctx, void *data, ...@@ -366,7 +366,7 @@ static int alac_decode_frame(AVCodecContext *avctx, void *data,
/* read the predictor table */ /* read the predictor table */
for (i = 0; i < predictor_coef_num[ch]; i++) for (i = 0; i < predictor_coef_num[ch]; i++)
predictor_coef_table[ch][i] = (int16_t)get_bits(&alac->gb, 16); predictor_coef_table[ch][i] = get_sbits(&alac->gb, 16);
} }
if (alac->extra_bits) { if (alac->extra_bits) {
......
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