From 112fe0ff194ffe7670fbc0690e6b15ba6279e11a Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Tue, 3 Nov 2020 12:28:02 +0100 Subject: [PATCH] avfilter/af_asoftclip: add asserts in default switch cases --- libavfilter/af_asoftclip.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libavfilter/af_asoftclip.c b/libavfilter/af_asoftclip.c index b656dcfa45..ce1f7ea96a 100644 --- a/libavfilter/af_asoftclip.c +++ b/libavfilter/af_asoftclip.c @@ -18,6 +18,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "libavutil/avassert.h" #include "libavutil/channel_layout.h" #include "libavutil/opt.h" #include "avfilter.h" @@ -162,6 +163,8 @@ static void filter_flt(ASoftClipContext *s, dst[n] = erff(src[n]); } break; + default: + av_assert0(0); } } } @@ -229,6 +232,8 @@ static void filter_dbl(ASoftClipContext *s, dst[n] = erf(src[n]); } break; + default: + av_assert0(0); } } } @@ -243,6 +248,7 @@ static int config_input(AVFilterLink *inlink) case AV_SAMPLE_FMT_FLTP: s->filter = filter_flt; break; case AV_SAMPLE_FMT_DBL: case AV_SAMPLE_FMT_DBLP: s->filter = filter_dbl; break; + default: av_assert0(0); } return 0;