X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavfilter%2Faf_pan.c;h=fbd79a5a428ac80511fd4e2653d179cfd4e53ee7;hb=07dcef9bc7a614084f4afe39de678884a36cabf1;hp=7c02f6720d7013b74decf1a1c40f44437902633b;hpb=f4e4bde1f4cff99d4ec59ed361ff9228b2050e6b;p=ffmpeg diff --git a/libavfilter/af_pan.c b/libavfilter/af_pan.c index 7c02f6720d7..fbd79a5a428 100644 --- a/libavfilter/af_pan.c +++ b/libavfilter/af_pan.c @@ -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)