]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/af_pan.c
Merge commit 'd2e56cf753a6c462041dee897d9d0c90f349988c'
[ffmpeg] / libavfilter / af_pan.c
index 7c02f6720d7013b74decf1a1c40f44437902633b..fbd79a5a428ac80511fd4e2653d179cfd4e53ee7 100644 (file)
@@ -322,7 +322,7 @@ static int config_props(AVFilterLink *link)
                 continue;
             t = 0;
             for (j = 0; j < link->channels; j++)
-                t += pan->gain[i][j];
+                t += fabs(pan->gain[i][j]);
             if (t > -1E-5 && t < 1E-5) {
                 // t is almost 0 but not exactly, this is probably a mistake
                 if (t)