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
This commit is contained in:
Marvin Scholz 2024-09-09 16:37:26 +02:00
parent 02306cbfee
commit 7e1d72589e
1 changed files with 1 additions and 1 deletions

View File

@ -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;