diff options
author | Marvin Scholz <epirat07@gmail.com> | 2024-09-09 16:37:26 +0200 |
---|---|---|
committer | Marvin Scholz <epirat07@gmail.com> | 2024-10-13 02:15:31 +0200 |
commit | 7e1d72589eca162d65987a9f6004417656fb6077 (patch) | |
tree | 3d5e6814357b2a7de9e48e1bfb507623f586a0c9 | |
parent | 02306cbfeea7c721ca6cffac02c44cdf63e0fc2a (diff) | |
download | ffmpeg-7e1d72589eca162d65987a9f6004417656fb6077.tar.gz |
avfilter/af_afftdn: use av_assert0 for unreachable assert
This is unreachable anyway so performance is not an issue here. Allows
guiding the compiler in all build modes to not emit a spurious warning
here:
warning: variable 'mag' is used uninitialized whenever switch default is taken
-rw-r--r-- | libavfilter/af_afftdn.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/af_afftdn.c b/libavfilter/af_afftdn.c index fd6b2b2685..eba5834420 100644 --- a/libavfilter/af_afftdn.c +++ b/libavfilter/af_afftdn.c @@ -379,7 +379,7 @@ static void process_frame(AVFilterContext *ctx, noisy_data[i] = mag = hypot(fft_data_dbl[i].re, fft_data_dbl[i].im); break; default: - av_assert2(0); + av_assert0(0); } power = mag * mag; |