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:
parent
02306cbfee
commit
7e1d72589e
@ -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);
|
noisy_data[i] = mag = hypot(fft_data_dbl[i].re, fft_data_dbl[i].im);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
av_assert2(0);
|
av_assert0(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
power = mag * mag;
|
power = mag * mag;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user