Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Roitzsch <reactorcontrol@icloud.com>2017-11-18 15:33:08 +0300
committerTobias Rapp <t.rapp@noa-archive.com>2017-11-21 16:04:10 +0300
commit752659ff1e0f6d9de93321f8b7e7c4ff741d0c8e (patch)
treef8d22788d2fd0edd1a33d874edb2b55fc8bc3d02 /libavfilter
parent67c079383538e61deabd3fc0f504a12bfa0c6925 (diff)
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)
Diffstat (limited to 'libavfilter')
-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))