ffmpeg | branch: master | Ganesh Ajjanagadde <gajjanaga...@gmail.com> | Wed Dec 
16 14:51:09 2015 -0500| [ad795f6394563b11a3038d04ef1df6a9ce32bfdb] | committer: 
Ganesh Ajjanagadde

lavfi/af_dynaudnorm: replace round by lrint

lrint is at least as fast, uses a superior rounding mode, and avoids an
implicit cast.

Signed-off-by: Ganesh Ajjanagadde <gajjanaga...@gmail.com>

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

 libavfilter/af_dynaudnorm.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/af_dynaudnorm.c b/libavfilter/af_dynaudnorm.c
index 1085189..1a5fc48 100644
--- a/libavfilter/af_dynaudnorm.c
+++ b/libavfilter/af_dynaudnorm.c
@@ -135,7 +135,7 @@ static int query_formats(AVFilterContext *ctx)
 
 static inline int frame_size(int sample_rate, int frame_len_msec)
 {
-    const int frame_size = round((double)sample_rate * (frame_len_msec / 
1000.0));
+    const int frame_size = lrint((double)sample_rate * (frame_len_msec / 
1000.0));
     return frame_size + (frame_size % 2);
 }
 

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

Reply via email to