avfilter/af_extrastereo: fix filtering when clipping is disabled

Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
Paul B Mahol 2017-11-20 10:58:35 +01:00
parent 25aff9d820
commit 185af4ccb1
1 changed files with 5 additions and 2 deletions

View File

@ -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)