]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - bitstream.h
afs: Use correct error code for com_select().
[paraslash.git] / bitstream.h
index 3bcd2759a703ab3d62567d9da4d5ae07dfdc1a71..4d81fa3b25521053c8cafcf49a4b14542b83e74a 100644 (file)
@@ -19,14 +19,12 @@ struct getbit_context {
        int index;
 };
 
-#define VLC_TYPE int16_t
-
 /** A variable length code table. */
 struct vlc {
        /** Number of bits of the table. */
        int bits;
        /** The code and the bits table. */
-       VLC_TYPE(*table)[2];
+       int16_t (*table)[2];
        /** The size of the table. */
        int table_size;
        /** Amount of memory allocated so far. */
@@ -98,4 +96,4 @@ static inline void init_get_bits(struct getbit_context *gbc,
 void init_vlc(struct vlc *vlc, int nb_bits, int nb_codes, const void *bits,
                const void *codes, int codes_size);
 void free_vlc(struct vlc *vlc);
-int get_vlc(struct getbit_context *gbc, VLC_TYPE(*table)[2], int bits);
+int get_vlc(struct getbit_context *gbc, const struct vlc *vlc);