diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-11-03 19:22:16 +0300 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-11-03 19:22:16 +0300 |
commit | 4bbd8f05f7c34967e1c1f7831ae70cde1edd50b5 (patch) | |
tree | 28fc5088002ad897482e22675a794f6063983860 /libavfilter/vf_idet.c | |
parent | 5d590d87b30c59dfb853ebde6276d36f8a8bbc58 (diff) |
avfilter/vf_idet: use av_rescale()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/vf_idet.c')
-rw-r--r-- | libavfilter/vf_idet.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/vf_idet.c b/libavfilter/vf_idet.c index 05f361af71..a059565a0a 100644 --- a/libavfilter/vf_idet.c +++ b/libavfilter/vf_idet.c @@ -173,8 +173,8 @@ static void filter(AVFilterContext *ctx) for(i=0; i<4; i++){ - idet->prestat [i] = (idet->decay_coefficient * idet->prestat [i]) / PRECISION; - idet->poststat[i] = (idet->decay_coefficient * idet->poststat[i]) / PRECISION; + idet->prestat [i] = av_rescale(idet->prestat [i], idet->decay_coefficient, PRECISION); + idet->poststat[i] = av_rescale(idet->poststat[i], idet->decay_coefficient, PRECISION); } idet->total_prestat [ type] ++; |