]> git.sesse.net Git - ffmpeg/commitdiff
lavfi/f_select: Fix aselect filter standalone compilation.
authorCarl Eugen Hoyos <ceffmpeg@gmail.com>
Thu, 10 Jan 2019 19:10:50 +0000 (20:10 +0100)
committerCarl Eugen Hoyos <ceffmpeg@gmail.com>
Thu, 10 Jan 2019 19:10:50 +0000 (20:10 +0100)
libavfilter/f_select.c

index d67849bf2600ba9bf34775ce9f3fde80b03df53d..a0d94cca53012e1b3f3aa7d51e6e57da238893ef 100644 (file)
@@ -241,7 +241,7 @@ static int config_input(AVFilterLink *inlink)
     select->var_values[VAR_SAMPLE_RATE] =
         inlink->type == AVMEDIA_TYPE_AUDIO ? inlink->sample_rate : NAN;
 
-    if (select->do_scene_detect) {
+    if (CONFIG_SELECT_FILTER && select->do_scene_detect) {
         select->sad = ff_scene_sad_get_fn(8);
         if (!select->sad)
             return AVERROR(EINVAL);