1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

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

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;