diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2016-02-04 01:49:15 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2016-02-04 23:14:02 +0100 |
commit | 1693336aed3988e0c13ad1ff880257d80d6ae69d (patch) | |
tree | 6a93f8ad34e9c28c0d85af7168e88016eb929076 /libavfilter/af_apulsator.c | |
parent | 4c573f8ce961e99a01df0633631ba85884be1f34 (diff) | |
download | ffmpeg-1693336aed3988e0c13ad1ff880257d80d6ae69d.tar.gz |
avfilter/af_apulsator: assert that pathes leaving uninitialized variables do not occur
Fixes: CID1341581, CID1341582
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavfilter/af_apulsator.c')
-rw-r--r-- | libavfilter/af_apulsator.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavfilter/af_apulsator.c b/libavfilter/af_apulsator.c index 6c815300d4..802b8d0256 100644 --- a/libavfilter/af_apulsator.c +++ b/libavfilter/af_apulsator.c @@ -18,6 +18,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "libavutil/avassert.h" #include "libavutil/opt.h" #include "avfilter.h" #include "internal.h" @@ -117,6 +118,7 @@ static double lfo_get_value(SimpleLFO *lfo) case SAWDOWN: val = 1 - phs * 2; break; + default: av_assert0(0); } return val * lfo->amount; @@ -207,6 +209,7 @@ static int config_input(AVFilterLink *inlink) case UNIT_BPM: freq = s->bpm / 60; break; case UNIT_MS: freq = 1 / (s->ms / 1000.); break; case UNIT_HZ: freq = s->hz; break; + default: av_assert0(0); } s->lfoL.freq = freq; |