summaryrefslogtreecommitdiff
path: root/libavfilter/vf_select.c
diff options
context:
space:
mode:
authorClément Bœsch <ubitux@gmail.com>2012-06-05 00:17:38 +0200
committerClément Bœsch <ubitux@gmail.com>2012-06-05 00:17:38 +0200
commit13a7bd70c8d94c5a46c14e7ac23a170b77eff52e (patch)
tree87403034ea960df80ba7a9ae5997f82c3be130ce /libavfilter/vf_select.c
parent9c4821ca7b4894e2b04c18d777ff499d847e51ba (diff)
lavfi/select: 10l: llabs -> fabs after switching types.
Diffstat (limited to 'libavfilter/vf_select.c')
-rw-r--r--libavfilter/vf_select.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_select.c b/libavfilter/vf_select.c
index d0c150562d..0c1b5091e6 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);