diff options
author | Martijn van Beurden <mvanb1@gmail.com> | 2022-07-14 20:18:05 +0200 |
---|---|---|
committer | Martijn van Beurden <mvanb1@gmail.com> | 2022-07-17 22:32:02 +0200 |
commit | 99885d3d64d1af49c9498c4513f04b4d5674c160 (patch) | |
tree | 91b06e3c137a797e348aca5abd3b74b35d6d6597 | |
parent | d3b8947b731db71d24b36440517d93d4706165d4 (diff) | |
download | flac-99885d3d64d1af49c9498c4513f04b4d5674c160.tar.gz |
Fix rolled up version of lpc_restore_signal_wide
This fixes https://github.com/xiph/flac/issues/393
-rw-r--r-- | src/libFLAC/lpc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libFLAC/lpc.c b/src/libFLAC/lpc.c index 3fe3a2b7..9868be5a 100644 --- a/src/libFLAC/lpc.c +++ b/src/libFLAC/lpc.c @@ -1214,7 +1214,7 @@ void FLAC__lpc_restore_signal_wide(const FLAC__int32 * flac_restrict residual, u break; } #endif - *(data++) = *(r++) + (FLAC__int32)(sum >> lp_quantization); + *(data++) = (FLAC__int32)(*(r++) + (sum >> lp_quantization)); } } #else /* fully unrolled version for normal use */ |