diff options
author | Michael Roitzsch <reactorcontrol@icloud.com> | 2017-11-18 13:33:08 +0100 |
---|---|---|
committer | Tobias Rapp <t.rapp@noa-archive.com> | 2017-11-22 10:42:07 +0100 |
commit | ca47e9ffdc656f31d5a79df74ec7a78fc4a938ee (patch) | |
tree | 8f6c21a514dfd11bd1cbe25189670aab58569644 | |
parent | a7aac19933a91e22d77b0b4dd4ecd61edf52d43f (diff) | |
download | ffmpeg-ca47e9ffdc656f31d5a79df74ec7a78fc4a938ee.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.
(cherry picked from commit 4f4e19914ddca5096bf7639c7c99a9045e436e8b)
-rw-r--r-- | libavfilter/af_pan.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavfilter/af_pan.c b/libavfilter/af_pan.c index a477bde460..e54f715147 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)) |