diff mbox series

[FFmpeg-devel,05/10] avfilter/vf_swapuv: Remove empty options and AVClass

Message ID GV1P250MB0737E7827D497C62336941EC8F382@GV1P250MB0737.EURP250.PROD.OUTLOOK.COM
State Accepted
Commit 6260d4f770e06a646c33a63d1250dbfc289dc2a1
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_swapuv.c | 13 -------------
 1 file changed, 13 deletions(-)
diff mbox series


diff --git a/libavfilter/vf_swapuv.c b/libavfilter/vf_swapuv.c
index df04631d20..7965dc5dd1 100644
--- a/libavfilter/vf_swapuv.c
+++ b/libavfilter/vf_swapuv.c
@@ -23,23 +23,12 @@ 
  * swap UV filter
-#include "libavutil/opt.h"
 #include "libavutil/pixdesc.h"
 #include "avfilter.h"
 #include "formats.h"
 #include "internal.h"
 #include "video.h"
-typedef struct SwapUVContext {
-    const AVClass *class;
-} SwapUVContext;
-static const AVOption swapuv_options[] = {
-    { NULL }
 static void do_swap(AVFrame *frame)
     FFSWAP(uint8_t*,     frame->data[1],     frame->data[2]);
@@ -104,8 +93,6 @@  static const AVFilterPad swapuv_inputs[] = {
 const AVFilter ff_vf_swapuv = {
     .name          = "swapuv",
     .description   = NULL_IF_CONFIG_SMALL("Swap U and V components."),
-    .priv_size     = sizeof(SwapUVContext),
-    .priv_class    = &swapuv_class,