Commit 13a7bd70 authored by Clément Bœsch's avatar Clément Bœsch

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

parent 9c4821ca
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment