X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavfilter%2Ff_select.c;h=3579665bcb73dc27dded895cbd513d342af75e21;hb=4ec1cb24978e201062408ffebad18d8ef906a46d;hp=c7c53b43edef06ff09190cdb8e742460ac917b0f;hpb=21dfabfa6461e809fbfe205b94ded5f9d155e67b;p=ffmpeg diff --git a/libavfilter/f_select.c b/libavfilter/f_select.c index c7c53b43ede..3579665bcb7 100644 --- a/libavfilter/f_select.c +++ b/libavfilter/f_select.c @@ -35,7 +35,7 @@ #include "video.h" #if CONFIG_AVCODEC -#include "libavcodec/dsputil.h" +#include "libavcodec/me_cmp.h" #endif static const char *const var_names[] = { @@ -146,7 +146,7 @@ typedef struct SelectContext { int do_scene_detect; ///< 1 if the expression requires scene detection variables, 0 otherwise #if CONFIG_AVCODEC AVCodecContext *avctx; ///< codec context required for the DSPContext (scene detect only) - DSPContext c; ///< context providing optimized SAD methods (scene detect only) + MECmpContext c; ///< context providing optimized SAD methods (scene detect only) double prev_mafd; ///< previous MAFD (scene detect only) #endif AVFrame *prev_picref; ///< previous frame (scene detect only) @@ -245,7 +245,7 @@ static int config_input(AVFilterLink *inlink) select->avctx = avcodec_alloc_context3(NULL); if (!select->avctx) return AVERROR(ENOMEM); - avpriv_dsputil_init(&select->c, select->avctx); + ff_me_cmp_init(&select->c, select->avctx); } #endif return 0;