You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avfilter/vf_idet: use av_rescale()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -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] ++;
|
||||
|
Reference in New Issue
Block a user