From 3ea3a4ba167cacc94ca34ad1fde7bc16d5c00f99 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Tue, 30 May 2023 19:28:56 +0200 Subject: [PATCH] avfilter/avf_aphasemeter: avoid using double --- libavfilter/avf_aphasemeter.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavfilter/avf_aphasemeter.c b/libavfilter/avf_aphasemeter.c index bf9f922639..2271e7ce73 100644 --- a/libavfilter/avf_aphasemeter.c +++ b/libavfilter/avf_aphasemeter.c @@ -161,7 +161,7 @@ static int config_video_output(AVFilterLink *outlink) static inline int get_x(float phase, int w) { - return (phase + 1.) / 2. * (w - 1); + return (phase + 1.f) / 2.f * (w - 1.f); } static inline void add_metadata(AVFrame *insamples, const char *key, char *value) @@ -251,7 +251,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in) int mono_measurement; int out_phase_measurement; float tolerance = 1.0f - s->tolerance; - float angle = cosf(s->angle/180.0f*M_PI); + float angle = cosf(s->angle/180.0f*M_PIf); if (s->do_video && (!s->out || s->out->width != outlink->w || s->out->height != outlink->h)) {