diff mbox series

[FFmpeg-devel,04/39] avfilter/vf_convolution: Fix standalone build of kirsch, scharr filters

Message ID AM7PR03MB66604F32B79AEB188614E23E8FD79@AM7PR03MB6660.eurprd03.prod.outlook.com
State Accepted
Commit 320891105569dafb503cc5e8650f95954610f02b
Headers show
Series [FFmpeg-devel,01/39] avfilter/vf_maskedminmax: Simplify init | expand

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished
andriy/make_ppc success Make finished
andriy/make_fate_ppc success Make fate finished

Commit Message

Andreas Rheinhardt Sept. 11, 2021, 11:40 p.m. UTC
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
Given that these options are static, the compiler can optimize them away
if none of the filters using them are enabled.

 libavfilter/vf_convolution.c | 4 ----
 1 file changed, 4 deletions(-)
diff mbox series

Patch

diff --git a/libavfilter/vf_convolution.c b/libavfilter/vf_convolution.c
index 5f59307c16..ccb3515bef 100644
--- a/libavfilter/vf_convolution.c
+++ b/libavfilter/vf_convolution.c
@@ -974,8 +974,6 @@  const AVFilter ff_vf_convolution = {
 
 #endif /* CONFIG_CONVOLUTION_FILTER */
 
-#if CONFIG_PREWITT_FILTER || CONFIG_ROBERTS_FILTER || CONFIG_SOBEL_FILTER
-
 static const AVOption prewitt_roberts_sobel_options[] = {
     { "planes", "set planes to filter", OFFSET(planes), AV_OPT_TYPE_INT,  {.i64=15}, 0, 15, FLAGS},
     { "scale",  "set scale",            OFFSET(scale), AV_OPT_TYPE_FLOAT, {.dbl=1.0}, 0.0,  65535, FLAGS},
@@ -1082,5 +1080,3 @@  const AVFilter ff_vf_scharr = {
 };
 
 #endif /* CONFIG_SCHARR_FILTER */
-
-#endif /* CONFIG_PREWITT_FILTER || CONFIG_ROBERTS_FILTER || CONFIG_SOBEL_FILTER || CONFIG_SCHARR_FILTER */