diff options
Diffstat (limited to 'audio/filter')
-rw-r--r-- | audio/filter/af_lavrresample.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/filter/af_lavrresample.c b/audio/filter/af_lavrresample.c index 21f31af8f9..f7f448cad0 100644 --- a/audio/filter/af_lavrresample.c +++ b/audio/filter/af_lavrresample.c @@ -432,7 +432,7 @@ static void extra_output_conversion(struct af_instance *af, struct mp_audio *mpa ((float *)ptr)[s] = av_clipf(((float *)ptr)[s], -1.0f, 1.0f); } else if (af_fmt_from_planar(mpa->format) == AF_FORMAT_DOUBLE) { for (int s = 0; s < total; s++) - ((double *)ptr)[s] = av_clipd(((double *)ptr)[s], -1.0, 1.0); + ((double *)ptr)[s] = MPCLAMP(((double *)ptr)[s], -1.0, 1.0); } } } |