X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=bitstream.c;h=a2a0537a47a9fe7d2c64ceadbb39bb41c58c0aba;hp=9cd1273cfd578cf89492012b41cf236ecd32a38d;hb=c8829b0bbe3c634ef64accfd88686c5895013e86;hpb=ac0008f1cb23e38c71b1074390ea530393cc8269;ds=sidebyside diff --git a/bitstream.c b/bitstream.c index 9cd1273c..a2a0537a 100644 --- a/bitstream.c +++ b/bitstream.c @@ -47,7 +47,7 @@ static void alloc_table(struct vlc *vlc, int size) if (vlc->table_size > vlc->table_allocated) { vlc->table_allocated += (1 << vlc->bits); vlc->table = para_realloc(vlc->table, - sizeof(VLC_TYPE) * 2 * vlc->table_allocated); + sizeof(int16_t) * 2 * vlc->table_allocated); } } @@ -57,7 +57,7 @@ static int build_table(struct vlc *vlc, int table_nb_bits, int nb_codes, { int i, j, k, n, table_size, table_index, nb, n1, idx; uint32_t code; - VLC_TYPE(*table)[2]; + int16_t (*table)[2]; table_size = 1 << table_nb_bits; table_index = vlc->table_size; @@ -173,7 +173,7 @@ void free_vlc(struct vlc *vlc) * * \return The vlc code. */ -int get_vlc(struct getbit_context *gbc, VLC_TYPE(*table)[2], int bits) +int get_vlc(struct getbit_context *gbc, int16_t (*table)[2], int bits) { int n, idx, nb_bits, code;