Commit 185af4cc authored by Paul B Mahol's avatar Paul B Mahol

avfilter/af_extrastereo: fix filtering when clipping is disabled

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent 25aff9d8
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment