avfilter/af_asoftclip: add asserts in default switch cases

This commit is contained in:
Paul B Mahol 2020-11-03 12:28:02 +01:00
parent de63b6fb54
commit 112fe0ff19
1 changed files with 6 additions and 0 deletions

View File

@ -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;