diff mbox series

[FFmpeg-devel,06/10] avfilter/vf_vflip: Remove empty options and AVClass

Message ID GV1P250MB07374BC613795AFBB5045CAF8F382@GV1P250MB0737.EURP250.PROD.OUTLOOK.COM
State Accepted
Commit 99a200cad8b6c6853c17f8af1e8fe7498bc9c07a
Headers show
Series [FFmpeg-devel,01/10] avcodec/libvpxenc: Avoid unused-variable warning if VP9 enc is disabled | expand


Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Andreas Rheinhardt March 31, 2024, 5:31 a.m. UTC
This filter only had an AVClass and empty options because up until
recently, avfilter_init_str() errored out when options were provided
for a filter without an AVClass. But setting (generic) options is
necessary to take advantage of timeline support. So with
avfilter_init_str() fixed, the AVClass and the options can be removed.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
 libavfilter/vf_vflip.c | 9 ---------
 1 file changed, 9 deletions(-)
diff mbox series


diff --git a/libavfilter/vf_vflip.c b/libavfilter/vf_vflip.c
index 8d6724ed37..d72605bef0 100644
--- a/libavfilter/vf_vflip.c
+++ b/libavfilter/vf_vflip.c
@@ -24,24 +24,16 @@ 
 #include "libavutil/internal.h"
-#include "libavutil/opt.h"
 #include "libavutil/pixdesc.h"
 #include "avfilter.h"
 #include "internal.h"
 #include "video.h"
 typedef struct FlipContext {
-    const AVClass *class;
     int vsub;   ///< vertical chroma subsampling
     int bayer;
 } FlipContext;
-static const AVOption vflip_options[] = {
-    { NULL }
 static int config_input(AVFilterLink *link)
     FlipContext *flip = link->dst->priv;
@@ -139,7 +131,6 @@  const AVFilter ff_vf_vflip = {
     .name        = "vflip",
     .description = NULL_IF_CONFIG_SMALL("Flip the input video vertically."),
     .priv_size   = sizeof(FlipContext),
-    .priv_class  = &vflip_class,