alac: use get_sbits() to read LPC coefficients instead of casting
authorJustin Ruggles <justin.ruggles@gmail.com>
Mon, 9 Jul 2012 17:19:10 +0000 (13:19 -0400)
committerJustin Ruggles <justin.ruggles@gmail.com>
Thu, 19 Jul 2012 17:26:47 +0000 (13:26 -0400)
libavcodec/alac.c

index 9e77f67..db83796 100644 (file)
@@ -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) {