mirror of https://git.ffmpeg.org/ffmpeg.git
avfilter/vaf_spectrumsynth: assert that variables are initialized by switch()
Silences: CID1351387 Silences: CID1351388 Silences: CID1351389 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
855d9d29eb
commit
03c1129b20
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue