aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/af_pan.c
diff options
context:
space:
mode:
authorMichael Roitzsch <reactorcontrol@icloud.com>2017-11-18 13:33:08 +0100
committerNicolas George <george@nsup.org>2017-11-19 17:32:11 +0100
commit4f4e19914ddca5096bf7639c7c99a9045e436e8b (patch)
tree77317fe053be7ca70dcd1ca441fe8e95f5119b5d /libavfilter/af_pan.c
parent0b7cd29d47a396d6afe01e5b4ef8382dc0ab6701 (diff)
downloadffmpeg-4f4e19914ddca5096bf7639c7c99a9045e436e8b.tar.gz
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.
Diffstat (limited to 'libavfilter/af_pan.c')
-rw-r--r--libavfilter/af_pan.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavfilter/af_pan.c b/libavfilter/af_pan.c
index 23b29419b6..d8a63a7952 100644
--- a/libavfilter/af_pan.c
+++ b/libavfilter/af_pan.c
@@ -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))