aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2020-11-03 12:28:02 +0100
committerPaul B Mahol <onemda@gmail.com>2020-11-03 12:30:19 +0100
commit112fe0ff194ffe7670fbc0690e6b15ba6279e11a (patch)
treeb972b0fbeffff9c1a0e7e8b26226b05a5fe0acc9
parentde63b6fb549e98f20194561a077456f03e7dcfe9 (diff)
downloadffmpeg-112fe0ff194ffe7670fbc0690e6b15ba6279e11a.tar.gz
avfilter/af_asoftclip: add asserts in default switch cases
-rw-r--r--libavfilter/af_asoftclip.c6
1 files changed, 6 insertions, 0 deletions
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;