diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-11-03 19:22:33 +0300 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-11-03 19:22:33 +0300 |
commit | 898635ad9ec9cadc3c45b61fba97a471f2be7d27 (patch) | |
tree | 2448a8eee135b4b488a8161d5e0737b0b1b0e68f /libavfilter | |
parent | 4bbd8f05f7c34967e1c1f7831ae70cde1edd50b5 (diff) |
avfilter/vf_idet: use exp2()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/vf_idet.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_idet.c b/libavfilter/vf_idet.c index a059565a0a..40b2616068 100644 --- a/libavfilter/vf_idet.c +++ b/libavfilter/vf_idet.c @@ -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; |