[FFmpeg-devel] [PATCH 2/3] avfilter/af_afftdn: use av_assert_unreachable

Marvin Scholz epirat07 at gmail.com
Fri Jul 12 21:09:06 EEST 2024


Fixes a compiler warning about mag possibly being uninitialised.
---
 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 a2e6ca6107..f26b620cfb 100644
--- a/libavfilter/af_afftdn.c
+++ b/libavfilter/af_afftdn.c
@@ -378,7 +378,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_assert_unreachable();
         }
 
         power = mag * mag;
-- 
2.39.3 (Apple Git-146)




More information about the ffmpeg-devel mailing list