[FFmpeg-cvslog] lavfi/select: 10l: llabs -> fabs after switching types.

Clément Bœsch git at videolan.org
Tue Jun 5 00:19:24 CEST 2012


ffmpeg | branch: master | Clément Bœsch <ubitux at gmail.com> | Tue Jun  5 00:17:38 2012 +0200| [13a7bd70c8d94c5a46c14e7ac23a170b77eff52e] | committer: Clément Bœsch

lavfi/select: 10l: llabs -> fabs after switching types.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=13a7bd70c8d94c5a46c14e7ac23a170b77eff52e
---

 libavfilter/vf_select.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/vf_select.c b/libavfilter/vf_select.c
index d0c1505..0c1b509 100644
--- a/libavfilter/vf_select.c
+++ b/libavfilter/vf_select.c
@@ -207,7 +207,7 @@ static double get_scene_score(AVFilterContext *ctx, AVFilterBufferRef *picref)
                                         linesize, 8);
         emms_c();
         mafd = sad / (picref->video->h * picref->video->w * 3);
-        diff = llabs(mafd - select->prev_mafd);
+        diff = fabs(mafd - select->prev_mafd);
         ret  = av_clipf(FFMIN(mafd, diff) / 100., 0, 1);
         select->prev_mafd = mafd;
         avfilter_unref_buffer(prev_picref);



More information about the ffmpeg-cvslog mailing list