Browse Source

avfilter/af_extrastereo: fix filtering when clipping is disabled

Signed-off-by: Paul B Mahol <onemda@gmail.com>
tags/n4.0
Paul B Mahol 8 years ago
parent
commit
185af4ccb1
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      libavfilter/af_extrastereo.c

+ 5
- 2
libavfilter/af_extrastereo.c 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)


Loading…
Cancel
Save