mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
avfilter/vf_idet: use exp2()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
4bbd8f05f7
commit
898635ad9e
@ -324,7 +324,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 * pow(2.0,-1.0 / idet->half_life) );
|
||||
idet->decay_coefficient = (uint64_t) round( PRECISION * exp2(-1.0 / idet->half_life) );
|
||||
else
|
||||
idet->decay_coefficient = PRECISION;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user