diff mbox series

[FFmpeg-devel,13/39] avfilter/f_realtime: Deduplicate AVClasses

Message ID AM7PR03MB666006D185CE8B02F701F1F08FD79@AM7PR03MB6660.eurprd03.prod.outlook.com
State Accepted
Commit fcea114b18831bc40ee362767fab1d4f1e049af9
Headers show
Series [FFmpeg-devel,01/39] avfilter/vf_maskedminmax: Simplify init
Related show

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>
---
 libavfilter/f_realtime.c | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)
diff mbox series

Patch

diff --git a/libavfilter/f_realtime.c b/libavfilter/f_realtime.c
index 125bd6131c..11bdb058ed 100644
--- a/libavfilter/f_realtime.c
+++ b/libavfilter/f_realtime.c
@@ -71,9 +71,9 @@  static const AVOption options[] = {
     { NULL }
 };
 
+AVFILTER_DEFINE_CLASS_EXT(realtime, "(a)realtime", options);
+
 #if CONFIG_REALTIME_FILTER
-#define realtime_options options
-AVFILTER_DEFINE_CLASS(realtime);
 
 static const AVFilterPad avfilter_vf_realtime_inputs[] = {
     {
@@ -102,9 +102,6 @@  const AVFilter ff_vf_realtime = {
 
 #if CONFIG_AREALTIME_FILTER
 
-#define arealtime_options options
-AVFILTER_DEFINE_CLASS(arealtime);
-
 static const AVFilterPad arealtime_inputs[] = {
     {
         .name         = "default",
@@ -123,8 +120,8 @@  static const AVFilterPad arealtime_outputs[] = {
 const AVFilter ff_af_arealtime = {
     .name        = "arealtime",
     .description = NULL_IF_CONFIG_SMALL("Slow down filtering to match realtime."),
+    .priv_class  = &realtime_class,
     .priv_size   = sizeof(RealtimeContext),
-    .priv_class  = &arealtime_class,
     FILTER_INPUTS(arealtime_inputs),
     FILTER_OUTPUTS(arealtime_outputs),
 };