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
Unified · Split
| @@ -379,7 +379,7 @@ static void process_frame(AVFilterContext *ctx, · 378 unmodified lines | ||
| 379 | 379 | noisy_data[i] = mag = hypot(fft_data_dbl[i].re, fft_data_dbl[i].im); |
| 380 | 380 | break; |
| 381 | 381 | default: |
| 382 | − av_assert2(0); | |
| 382 | + av_assert0(0); | |
| 383 | 383 | } |
| 384 | 384 | |
| 385 | 385 | power = mag * mag; |