aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2024-07-08 00:59:40 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2024-07-21 16:34:27 +0200
commit64aa233a88db7a9d53ecaa59e4a2e9f1319ad9da (patch)
treed91bc183d3944d654735ff9b31540a51df3d5d48
parent2af95b9214a6bf75f946440d36c349963396e23b (diff)
downloadffmpeg-64aa233a88db7a9d53ecaa59e4a2e9f1319ad9da.tar.gz
avfilter/vf_fftfilt: Remove dead depth code
Fixes: CID1509373 Logically dead code Sponsored-by: Sovereign Tech Fund Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavfilter/vf_fftfilt.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libavfilter/vf_fftfilt.c b/libavfilter/vf_fftfilt.c
index 1ffbe02ec4..af0e1f51d2 100644
--- a/libavfilter/vf_fftfilt.c
+++ b/libavfilter/vf_fftfilt.c
@@ -382,11 +382,9 @@ static int config_props(AVFilterLink *inlink)
if (s->depth <= 8) {
s->rdft_horizontal = rdft_horizontal8;
s->irdft_horizontal = irdft_horizontal8;
- } else if (s->depth > 8) {
+ } else {
s->rdft_horizontal = rdft_horizontal16;
s->irdft_horizontal = irdft_horizontal16;
- } else {
- return AVERROR_BUG;
}
return 0;
}