]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/af_anull.c
vf_drawtext: Move static keyword to beginning of variable declaration
[ffmpeg] / libavfilter / af_anull.c
index e2bed36f0a8369959794dda8a69a1ede8c9c091d..6d7caf3f4e6b0eefe15e0be6f5595fb9c460de6b 100644 (file)
  * null audio filter
  */
 
+#include "audio.h"
 #include "avfilter.h"
+#include "internal.h"
+#include "libavutil/internal.h"
 
-AVFilter avfilter_af_anull = {
+static const AVFilterPad avfilter_af_anull_inputs[] = {
+    {
+        .name             = "default",
+        .type             = AVMEDIA_TYPE_AUDIO,
+        .get_audio_buffer = ff_null_get_audio_buffer,
+    },
+    { NULL }
+};
+
+static const AVFilterPad avfilter_af_anull_outputs[] = {
+    {
+        .name = "default",
+        .type = AVMEDIA_TYPE_AUDIO,
+    },
+    { NULL }
+};
+
+AVFilter ff_af_anull = {
     .name      = "anull",
     .description = NULL_IF_CONFIG_SMALL("Pass the source unchanged to the output."),
 
     .priv_size = 0,
 
-    .inputs    = (AVFilterPad[]) {{ .name             = "default",
-                                    .type             = AVMEDIA_TYPE_AUDIO,
-                                    .get_audio_buffer = avfilter_null_get_audio_buffer,
-                                    .filter_samples   = avfilter_null_filter_samples },
-                                  { .name = NULL}},
+    .inputs    = avfilter_af_anull_inputs,
 
-    .outputs   = (AVFilterPad[]) {{ .name             = "default",
-                                    .type             = AVMEDIA_TYPE_AUDIO, },
-                                  { .name = NULL}},
+    .outputs   = avfilter_af_anull_outputs,
 };