[FFmpeg-cvslog] avfilter/af_afftdn: use av_assert0 for unreachable assert

Marvin Scholz git at videolan.org
Sun Oct 13 03:16:28 EEST 2024


ffmpeg | branch: master | Marvin Scholz <epirat07 at gmail.com> | Mon Sep  9 16:37:26 2024 +0200| [7e1d72589eca162d65987a9f6004417656fb6077] | committer: Marvin Scholz

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

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7e1d72589eca162d65987a9f6004417656fb6077
---

 libavfilter/af_afftdn.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/af_afftdn.c b/libavfilter/af_afftdn.c
index fd6b2b2685..eba5834420 100644
--- a/libavfilter/af_afftdn.c
+++ b/libavfilter/af_afftdn.c
@@ -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;



More information about the ffmpeg-cvslog mailing list