summaryrefslogtreecommitdiff
path: root/libavfilter/af_anull.c
diff options
context:
space:
mode:
authorS.N. Hemanth Meenakshisundaram <smeenaks@ucsd.edu>2010-08-20 23:16:51 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2010-08-20 23:16:51 +0000
commit99046339fca92d631404b47b041e98afa28659ed (patch)
tree26b23e97aa05611c7b0bc3eacab8a527c189e296 /libavfilter/af_anull.c
parentf59e9eaf78c28026ebc540b5767c7fe9f11590fc (diff)
Add null audio filter.
Patch by S.N. Hemanth Meenakshisundaram -af smeenaks,ucsd,edu. Originally committed as revision 24856 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavfilter/af_anull.c')
-rw-r--r--libavfilter/af_anull.c41
1 files changed, 41 insertions, 0 deletions
diff --git a/libavfilter/af_anull.c b/libavfilter/af_anull.c
new file mode 100644
index 0000000000..94e7e17b48
--- /dev/null
+++ b/libavfilter/af_anull.c
@@ -0,0 +1,41 @@
+/*
+ * This file is part of FFmpeg.
+ *
+ * FFmpeg is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * FFmpeg is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with FFmpeg; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+/**
+ * @file
+ * null audio filter
+ */
+
+#include "avfilter.h"
+
+AVFilter avfilter_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}},
+
+ .outputs = (AVFilterPad[]) {{ .name = "default",
+ .type = AVMEDIA_TYPE_AUDIO, },
+ { .name = NULL}},
+};