[FFmpeg-cvslog] avfilter/f_realtime: Deduplicate AVClasses

Andreas Rheinhardt git at videolan.org
Sun Sep 19 06:13:46 EEST 2021


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Fri Sep 10 22:27:36 2021 +0200| [fcea114b18831bc40ee362767fab1d4f1e049af9] | committer: Andreas Rheinhardt

avfilter/f_realtime: Deduplicate AVClasses

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=fcea114b18831bc40ee362767fab1d4f1e049af9
---

 libavfilter/f_realtime.c | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

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),
 };



More information about the ffmpeg-cvslog mailing list