mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
alac: use get_sbits() to read LPC coefficients instead of casting
This commit is contained in:
parent
7a50ec6799
commit
1193d3fedd
@ -366,7 +366,7 @@ static int alac_decode_frame(AVCodecContext *avctx, void *data,
|
||||
|
||||
/* read the predictor table */
|
||||
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) {
|
||||
|
Loading…
Reference in New Issue
Block a user