[FFmpeg-cvslog] avfilter/af_extrastereo: fix filtering when clipping is disabled
Paul B Mahol
git at videolan.org
Mon Nov 20 12:03:07 EET 2017
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Mon Nov 20 10:58:35 2017 +0100| [185af4ccb1702aa37f1f61fc77c2b37f1b2f4d8d] | committer: Paul B Mahol
avfilter/af_extrastereo: fix filtering when clipping is disabled
Signed-off-by: Paul B Mahol <onemda at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=185af4ccb1702aa37f1f61fc77c2b37f1b2f4d8d
---
libavfilter/af_extrastereo.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/libavfilter/af_extrastereo.c b/libavfilter/af_extrastereo.c
index a746006f71..b07c006f2c 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)
More information about the ffmpeg-cvslog
mailing list