History

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

Marvin Scholz committed 2 years ago

Commit 7e1d7251 parent 02306cb1 file · +1 −1Browse files

Unified · Split

libavfilter/af_afftdn.c+1−1
@@ -379,7 +379,7 @@ static void process_frame(AVFilterContext *ctx, · 378 unmodified lines
379379 noisy_data[i] = mag = hypot(fft_data_dbl[i].re, fft_data_dbl[i].im);
380380 break;
381381 default:
382− av_assert2(0);
382+ av_assert0(0);
383383 }
384384
385385 power = mag * mag;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t