X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavfilter%2Faf_extrastereo.c;h=b07c006f2c5ce5b1cca4ea3818a45554e0aada14;hb=c0b08ef94f037572876448990dca840b85432262;hp=a746006f7107feb1712b56a6f8c98ff29bba8e8e;hpb=64581372005d57e47ef6580ee2a0e81144f3e5d2;p=ffmpeg diff --git a/libavfilter/af_extrastereo.c b/libavfilter/af_extrastereo.c index a746006f710..b07c006f2c5 100644 --- a/libavfilter/af_extrastereo.c +++ b/libavfilter/af_extrastereo.c @@ -90,9 +90,12 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in) right = average + mult * (right - average); if (s->clip) { - dst[n * 2 ] = av_clipf(left, -1, 1); - dst[n * 2 + 1] = av_clipf(right, -1, 1); + left = av_clipf(left, -1, 1); + right = av_clipf(right, -1, 1); } + + dst[n * 2 ] = left; + dst[n * 2 + 1] = right; } if (out != in)