Commit ca47e9ff authored by Michael Roitzsch's avatar Michael Roitzsch Committed by Tobias Rapp

lavfi/af_pan: fix sign handling in channel coefficient parser

When a channel formula ends with a subtraction, the next formula will
otherwise have its first coefficient negated.

(cherry picked from commit 4f4e1991)
parent a7aac199
......@@ -166,6 +166,7 @@ static av_cold int init(AVFilterContext *ctx)
goto fail;
}
/* gains */
sign = 1;
while (1) {
gain = 1;
if (sscanf(arg, "%lf%n *%n", &gain, &len, &len))
......
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