[FFmpeg-cvslog] avfilter/af_stereotools: remove floor usage

Paul B Mahol git at videolan.org
Wed Dec 2 12:09:15 CET 2015


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Wed Dec  2 12:05:04 2015 +0100| [6670527d33bb6b76f779440222b2ac6459fa466f] | committer: Paul B Mahol

avfilter/af_stereotools: remove floor usage

Signed-off-by: Paul B Mahol <onemda at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6670527d33bb6b76f779440222b2ac6459fa466f
---

 libavfilter/af_stereotools.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/libavfilter/af_stereotools.c b/libavfilter/af_stereotools.c
index a22efb0..3c796f5 100644
--- a/libavfilter/af_stereotools.c
+++ b/libavfilter/af_stereotools.c
@@ -139,10 +139,10 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
     const double sc_level = s->sc_level;
     const double delay = s->delay;
     const int length = s->length;
-    const int mute_l = floor(s->mute_l + 0.5);
-    const int mute_r = floor(s->mute_r + 0.5);
-    const int phase_l = floor(s->phase_l + 0.5);
-    const int phase_r = floor(s->phase_r + 0.5);
+    const int mute_l = s->mute_l;
+    const int mute_r = s->mute_r;
+    const int phase_l = s->phase_l;
+    const int phase_r = s->phase_r;
     double *buffer = s->buffer;
     AVFrame *out;
     double *dst;



More information about the ffmpeg-cvslog mailing list