On Mon, Nov 3, 2014 at 8:33 AM, Michael Niedermayer <g...@videolan.org> wrote:
> ffmpeg | branch: master | Michael Niedermayer <michae...@gmx.at> | Mon > Nov 3 17:22:16 2014 +0100| [4bbd8f05f7c34967e1c1f7831ae70cde1edd50b5] | > committer: Michael Niedermayer > > avfilter/vf_idet: use av_rescale() > > Signed-off-by: Michael Niedermayer <michae...@gmx.at> > > > > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4bbd8f05f7c34967e1c1f7831ae70cde1edd50b5 > --- > > libavfilter/vf_idet.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/libavfilter/vf_idet.c b/libavfilter/vf_idet.c > index 05f361a..a059565 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); > } > lgtm > > idet->total_prestat [ type] ++; > > _______________________________________________ > ffmpeg-cvslog mailing list > ffmpeg-cvslog@ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog > _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog