Commit 03c1129b authored by Michael Niedermayer's avatar Michael Niedermayer

avfilter/vaf_spectrumsynth: assert that variables are initialized by switch()

Silences: CID1351387
Silences: CID1351388
Silences: CID1351389
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 855d9d29
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment