diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2019-06-21 22:08:27 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2019-11-11 20:18:46 +0100 |
commit | 142c7ccb2503da2f315f6895cfec4c677399edb0 (patch) | |
tree | 8776ed084e4db5092bcc7c9ba8a027e95612b2fa | |
parent | f3487260a1ceae73db657e4a996096fbac50a47d (diff) | |
download | ffmpeg-142c7ccb2503da2f315f6895cfec4c677399edb0.tar.gz |
avcodec/ffwavesynth: Fix backward lcg_seek()
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit cf2bd3ce79b12256d7d129b2ada5ee649b9a27eb)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r-- | libavcodec/ffwavesynth.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/ffwavesynth.c b/libavcodec/ffwavesynth.c index a66113972b..cf8c780f3e 100644 --- a/libavcodec/ffwavesynth.c +++ b/libavcodec/ffwavesynth.c @@ -122,7 +122,7 @@ static void lcg_seek(uint32_t *s, int64_t dt) c = LCG_C; } else { /* coefficients for a step backward */ a = LCG_AI; - c = (uint32_t)(LCG_AI * LCG_C); + c = (uint32_t)(-LCG_AI * LCG_C); dt = -dt; } while (dt) { |