lavfi/select: 10l: llabs -> fabs after switching types.
authorClément Bœsch <ubitux@gmail.com>
Mon, 4 Jun 2012 22:17:38 +0000 (00:17 +0200)
committerClément Bœsch <ubitux@gmail.com>
Mon, 4 Jun 2012 22:17:38 +0000 (00:17 +0200)
libavfilter/vf_select.c

index d0c1505..0c1b509 100644 (file)
@@ -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);