Commit 641cb77f authored by Ganesh Ajjanagadde's avatar Ganesh Ajjanagadde

lavfi/vf_idet: replace round and cast by lrint

lrint is faster and conveys the intent better here. It is safe as long int has
at least 32 bits.
Reviewed-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
Signed-off-by: 's avatarGanesh Ajjanagadde <gajjanagadde@gmail.com>
parent def3c83e
......@@ -409,7 +409,7 @@ static av_cold int init(AVFilterContext *ctx)
memset(idet->history, UNDETERMINED, HIST_SIZE);
if( idet->half_life > 0 )
idet->decay_coefficient = (uint64_t) round( PRECISION * exp2(-1.0 / idet->half_life) );
idet->decay_coefficient = lrint( PRECISION * exp2(-1.0 / idet->half_life) );
else
idet->decay_coefficient = PRECISION;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment