libavfilter/ebur128: add target value to statistics line
[ffmpeg.git] / libavfilter / vf_null.c
index 3724ac7..2355615 100644 (file)
  */
 
 /**
- * @file libavfilter/vf_null.c
+ * @file
  * null video filter
  */
 
+#include "libavutil/internal.h"
 #include "avfilter.h"
+#include "internal.h"
+#include "video.h"
+
+static const AVFilterPad avfilter_vf_null_inputs[] = {
+    {
+        .name = "default",
+        .type = AVMEDIA_TYPE_VIDEO,
+    },
+    { NULL }
+};
 
-static void start_frame(AVFilterLink *link, AVFilterPicRef *picref)
-{
-    avfilter_start_frame(link->dst->outputs[0], picref);
-}
-
-static void end_frame(AVFilterLink *link)
-{
-    avfilter_end_frame(link->dst->outputs[0]);
-}
+static const AVFilterPad avfilter_vf_null_outputs[] = {
+    {
+        .name = "default",
+        .type = AVMEDIA_TYPE_VIDEO,
+    },
+    { NULL }
+};
 
-AVFilter avfilter_vf_null = {
-    .name      = "null",
+AVFilter ff_vf_null = {
+    .name        = "null",
     .description = NULL_IF_CONFIG_SMALL("Pass the source unchanged to the output."),
-
-    .priv_size = 0,
-
-    .inputs    = (AVFilterPad[]) {{ .name             = "default",
-                                    .type             = CODEC_TYPE_VIDEO,
-                                    .start_frame      = start_frame,
-                                    .end_frame        = end_frame },
-                                  { .name = NULL}},
-
-    .outputs   = (AVFilterPad[]) {{ .name             = "default",
-                                    .type             = CODEC_TYPE_VIDEO, },
-                                  { .name = NULL}},
+    .inputs      = avfilter_vf_null_inputs,
+    .outputs     = avfilter_vf_null_outputs,
 };