mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-13 18:55:08 +00:00
avfilter/af_extrastereo: fix filtering when clipping is disabled
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
25aff9d820
commit
185af4ccb1
@ -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…
Reference in New Issue
Block a user