Reorder fields in struct VLCcode for less memory use

This commit is contained in:
Henrik Rydgård committed 2024-04-12 13:53:19 +02:00
1 parent 88a00f62b9
commit 6f11b7fe6c
1 file changed
+2 -2
+2 -2
View File
@@ -102,11 +102,11 @@ static inline uint32_t bitswap_32(uint32_t x)
}
typedef struct VLCcode {
uint8_t bits;
uint16_t symbol;
/** codeword, with the first bit-to-be-read in the msb
* (even if intended for a little-endian bitstream reader) */
uint32_t code;
uint16_t symbol;
uint8_t bits;
} VLCcode;
static int compare_vlcspec(const void *a, const void *b)