mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-17 20:17:55 +02:00
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 4f4e19914ddca5096bf7639c7c99a9045e436e8b)
This commit is contained in:
parent
67c0793835
commit
752659ff1e
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user