[FFmpeg-cvslog] alac: use get_sbits() to read LPC coefficients instead of casting

Justin Ruggles git at videolan.org
Thu Jul 19 23:35:54 CEST 2012


ffmpeg | branch: master | Justin Ruggles <justin.ruggles at gmail.com> | Mon Jul  9 13:19:10 2012 -0400| [1193d3feddc1ce9ea233632679630b377d2a9894] | committer: Justin Ruggles

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

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1193d3feddc1ce9ea233632679630b377d2a9894
---

 libavcodec/alac.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/alac.c b/libavcodec/alac.c
index 9e77f67..db83796 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) {



More information about the ffmpeg-cvslog mailing list