diff options
author | Guenter Bartsch <guenter@users.sourceforge.net> | 2001-05-26 15:07:18 +0000 |
---|---|---|
committer | Guenter Bartsch <guenter@users.sourceforge.net> | 2001-05-26 15:07:18 +0000 |
commit | 2bb1b8f3a4984075743b17fbe1d00b1af9917254 (patch) | |
tree | 06aa3a03497e938d80a7146013fef96324ef073c /src/libac3/dither.h | |
parent | 65480cd3d11b465f0ede5f6c3d1b9f12e06dc98b (diff) | |
download | xine-lib-2bb1b8f3a4984075743b17fbe1d00b1af9917254.tar.gz xine-lib-2bb1b8f3a4984075743b17fbe1d00b1af9917254.tar.bz2 |
switch to walken's libac3 and minor bugfixes
CVS patchset: 83
CVS date: 2001/05/26 15:07:18
Diffstat (limited to 'src/libac3/dither.h')
-rw-r--r-- | src/libac3/dither.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libac3/dither.h b/src/libac3/dither.h index abb9f518e..1a605ee14 100644 --- a/src/libac3/dither.h +++ b/src/libac3/dither.h @@ -27,11 +27,11 @@ extern const uint16_t dither_lut[256]; static inline uint16_t dither_gen(void) { - int16_t state; + int16_t state; - state = dither_lut[lfsr_state >> 8] ^ (lfsr_state << 8); + state = dither_lut[lfsr_state >> 8] ^ (lfsr_state << 8); - lfsr_state = (uint16_t) state; + lfsr_state = (uint16_t) state; - return ((state * (int32_t) (0.707106 * 256.0))>>8); + return ((state * (int32_t) (0.707106 * 256.0))>>8); } |