]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/vsink_nullsink.c
x86inc: Improve FMA instruction handling
[ffmpeg] / libavfilter / vsink_nullsink.c
index e03dcf0085e4a2d0785fb1961414b8cfb4d01a6a..14b6b122ab721347a67724e1c9423f859e094340 100644 (file)
 
 #include "avfilter.h"
 #include "internal.h"
+#include "libavutil/internal.h"
 
-static int start_frame(AVFilterLink *link, AVFilterBufferRef *picref)
+static int filter_frame(AVFilterLink *link, AVFrame *frame)
 {
+    av_frame_free(&frame);
     return 0;
 }
 
-static int end_frame(AVFilterLink *link)
-{
-    return 0;
-}
+static const AVFilterPad avfilter_vsink_nullsink_inputs[] = {
+    {
+        .name        = "default",
+        .type        = AVMEDIA_TYPE_VIDEO,
+        .filter_frame = filter_frame,
+    },
+    { NULL },
+};
 
-AVFilter avfilter_vsink_nullsink = {
+AVFilter ff_vsink_nullsink = {
     .name        = "nullsink",
     .description = NULL_IF_CONFIG_SMALL("Do absolutely nothing with the input video."),
 
     .priv_size = 0,
 
-    .inputs    = (const AVFilterPad[]) {
-        {
-            .name            = "default",
-            .type            = AVMEDIA_TYPE_VIDEO,
-            .start_frame     = start_frame,
-            .end_frame       = end_frame,
-        },
-        { .name = NULL},
-    },
-    .outputs   = (const AVFilterPad[]) {{ .name = NULL }},
+    .inputs    = avfilter_vsink_nullsink_inputs,
+    .outputs   = NULL,
 };