From 8225dce619f1908774824f258130fef3ad77ca84 Mon Sep 17 00:00:00 2001
From: Michael Roitzsch <reactorcontrol@icloud.com>
Date: Sat, 18 Nov 2017 13:33:08 +0100
Subject: [PATCH] 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
---
 libavfilter/af_pan.c | 1 +
 1 file changed, 1 insertion(+)

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))
-- 
2.13.6 (Apple Git-96)

