Commit cf2bd3ce authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/ffwavesynth: Fix backward lcg_seek()

Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 37708cba
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment