summaryrefslogtreecommitdiff
path: root/libavcodec/alac.c
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2012-07-09 13:19:10 -0400
committerJustin Ruggles <justin.ruggles@gmail.com>2012-07-19 13:26:47 -0400
commit1193d3feddc1ce9ea233632679630b377d2a9894 (patch)
tree492bc8ef6323106404e94d42df41e0cc23462505 /libavcodec/alac.c
parent7a50ec6799b92f0e3681d734aa0769857a16ef87 (diff)
alac: use get_sbits() to read LPC coefficients instead of casting
Diffstat (limited to 'libavcodec/alac.c')
-rw-r--r--libavcodec/alac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/alac.c b/libavcodec/alac.c
index 9e77f67457..db83796963 100644
--- a/libavcodec/alac.c
+++ b/libavcodec/alac.c
@@ -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) {