Commit 4bbd8f05 authored by Michael Niedermayer's avatar Michael Niedermayer

avfilter/vf_idet: use av_rescale()

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 5d590d87
...@@ -173,8 +173,8 @@ static void filter(AVFilterContext *ctx) ...@@ -173,8 +173,8 @@ static void filter(AVFilterContext *ctx)
for(i=0; i<4; i++){ for(i=0; i<4; i++){
idet->prestat [i] = (idet->decay_coefficient * idet->prestat [i]) / PRECISION; idet->prestat [i] = av_rescale(idet->prestat [i], idet->decay_coefficient, PRECISION);
idet->poststat[i] = (idet->decay_coefficient * idet->poststat[i]) / PRECISION; idet->poststat[i] = av_rescale(idet->poststat[i], idet->decay_coefficient, PRECISION);
} }
idet->total_prestat [ type] ++; idet->total_prestat [ type] ++;
......
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