avfilter/af_anequalizer: make cliping filter type actually useful
authorPaul B Mahol <onemda@gmail.com>
Fri, 25 Dec 2015 14:03:46 +0000 (15:03 +0100)
committerPaul B Mahol <onemda@gmail.com>
Fri, 25 Dec 2015 14:03:46 +0000 (15:03 +0100)
Previously result was ignored.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavfilter/af_anequalizer.c

index ae95322..e817fdc 100644 (file)
@@ -607,7 +607,7 @@ static int config_input(AVFilterLink *inlink)
             s->filters[s->nb_filters].channel >= inlink->channels)
             s->filters[s->nb_filters].ignore = 1;
 
-        av_clip(s->filters[s->nb_filters].type, 0, NB_TYPES - 1);
+        s->filters[s->nb_filters].type = av_clip(s->filters[s->nb_filters].type, 0, NB_TYPES - 1);
         ret = add_filter(s, inlink);
         if (ret < 0)
             break;