X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavfilter%2Faf_surround.c;h=fcd84155a7680e311653f4fcaf5a3f6767f91587;hb=6fc762b4fd2c28ef7a0689a1df5ce200e5f5948f;hp=f29afecbfb6409104a0447c8546d999bad48d26d;hpb=14fe81b3a88dfe4dbac12e8715f9a3f05b5ef1bf;p=ffmpeg diff --git a/libavfilter/af_surround.c b/libavfilter/af_surround.c index f29afecbfb6..fcd84155a76 100644 --- a/libavfilter/af_surround.c +++ b/libavfilter/af_surround.c @@ -229,8 +229,8 @@ static int config_output(AVFilterLink *outlink) static void stereo_position(float a, float p, float *x, float *y) { - *x = av_clipf(a+FFMAX(0, sinf(p-M_PI_2))*FFDIFFSIGN(a,0), -1, 1); - *y = av_clipf(cosf(a*M_PI_2+M_PI)*cosf(M_PI_2-p/M_PI)*M_LN10+1, -1, 1); + *x = av_clipf(a+FFMAX(0, sinf(p-M_PI_2))*FFDIFFSIGN(a,0), -1, 1); + *y = av_clipf(cosf(a*M_PI_2+M_PI)*cosf(M_PI_2-p/M_PI)*M_LN10+1, -1, 1); } static inline void get_lfe(int output_lfe, int n, float lowcut, float highcut,