On Fri, Dec 18, 2015 at 9:45 PM, Ganesh Ajjanagadde <gajjanaga...@gmail.com> wrote: > lrint is at least as fast, and is more accurate. > > Signed-off-by: Ganesh Ajjanagadde <gajjanaga...@gmail.com> > --- > 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 5f412f5..6401595 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); > } > > -- > 2.6.4 >
pushed _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel