diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2016-02-11 23:04:07 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2016-02-11 23:06:24 +0100 |
commit | 03c1129b20642df4e713b21afd5ee4844b1c409d (patch) | |
tree | 312c3561c7f1e758b2adf498f566af1860288506 /libavfilter/vaf_spectrumsynth.c | |
parent | 855d9d29ebf135b08ffdc7436e529a3ab767f977 (diff) | |
download | ffmpeg-03c1129b20642df4e713b21afd5ee4844b1c409d.tar.gz |
avfilter/vaf_spectrumsynth: assert that variables are initialized by switch()
Silences: CID1351387
Silences: CID1351388
Silences: CID1351389
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavfilter/vaf_spectrumsynth.c')
-rw-r--r-- | libavfilter/vaf_spectrumsynth.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libavfilter/vaf_spectrumsynth.c b/libavfilter/vaf_spectrumsynth.c index ba14d8dc71..8d4014eae8 100644 --- a/libavfilter/vaf_spectrumsynth.c +++ b/libavfilter/vaf_spectrumsynth.c @@ -256,6 +256,8 @@ static void read16_fft_bin(SpectrumSynthContext *s, case LOG: magnitude = ff_exp10(((m[x] / (double)UINT16_MAX) - 1.) * 6.); break; + default: + av_assert0(0); } phase = ((p[x] / (double)UINT16_MAX) * 2. - 1.) * M_PI; @@ -279,6 +281,8 @@ static void read8_fft_bin(SpectrumSynthContext *s, case LOG: magnitude = ff_exp10(((m[x] / (double)UINT8_MAX) - 1.) * 6.); break; + default: + av_assert0(0); } phase = ((p[x] / (double)UINT8_MAX) * 2. - 1.) * M_PI; @@ -454,6 +458,8 @@ static int try_push_frames(AVFilterContext *ctx) break; } break; + default: + av_assert0(0); } av_frame_free(&s->magnitude); |