comparison mpc8.c @ 9517:dcae1f330498 libavcodec

Compact and make constant two tables used by Musepack decoders
author kostya
date Mon, 20 Apr 2009 15:36:27 +0000
parents d719a2711c64
children d1119c095555
comparison
equal deleted inserted replaced
9516:f15a920ce40e 9517:dcae1f330498
86 if((t << 1) > size) mask = ~mask; 86 if((t << 1) > size) mask = ~mask;
87 87
88 return mask; 88 return mask;
89 } 89 }
90 90
91 static int vlc_offsets[13] = { 91 static const uint16_t vlc_offsets[13] = {
92 0, 640, 1184, 1748, 2298, 2426, 2554, 3066, 3578, 4106, 4618, 5196, 5708 92 0, 640, 1184, 1748, 2298, 2426, 2554, 3066, 3578, 4106, 4618, 5196, 5708
93 }; 93 };
94 94
95 static av_cold int mpc8_decode_init(AVCodecContext * avctx) 95 static av_cold int mpc8_decode_init(AVCodecContext * avctx)
96 { 96 {