[FFmpeg-cvslog] lavfi/f_select: Fix aselect filter standalone compilation.

Carl Eugen Hoyos git at videolan.org
Thu Jan 10 21:12:01 EET 2019


ffmpeg | branch: master | Carl Eugen Hoyos <ceffmpeg at gmail.com> | Thu Jan 10 20:10:50 2019 +0100| [e51811d21598eb914253f89e1153e16f171b3bed] | committer: Carl Eugen Hoyos

lavfi/f_select: Fix aselect filter standalone compilation.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e51811d21598eb914253f89e1153e16f171b3bed
---

 libavfilter/f_select.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/f_select.c b/libavfilter/f_select.c
index d67849bf26..a0d94cca53 100644
--- a/libavfilter/f_select.c
+++ b/libavfilter/f_select.c
@@ -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);



More information about the ffmpeg-cvslog mailing list