summaryrefslogtreecommitdiff
path: root/libavfilter/asink_anullsink.c
diff options
context:
space:
mode:
authorS.N. Hemanth Meenakshisundaram <smeenaks@ucsd.edu>2010-09-25 01:57:01 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2010-09-25 01:57:01 +0000
commitf0a5543898dad040b8f2d1b44fb6b278c06c3460 (patch)
treeba517498bfc261423488ccaacdc621cbe7288a1c /libavfilter/asink_anullsink.c
parent1ee410f330d3b57b0ea1ccb915977f2ba4d99815 (diff)
Add asink_anullsink - null audio sink.
Patch by "S.N. Hemanth Meenakshisundaram" /smeenaks/ucsd/edu. Originally committed as revision 25189 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavfilter/asink_anullsink.c')
-rw-r--r--libavfilter/asink_anullsink.c38
1 files changed, 38 insertions, 0 deletions
diff --git a/libavfilter/asink_anullsink.c b/libavfilter/asink_anullsink.c
new file mode 100644
index 0000000000..5a89c2792e
--- /dev/null
+++ b/libavfilter/asink_anullsink.c
@@ -0,0 +1,38 @@
+/*
+ * 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
+ */
+
+#include "avfilter.h"
+
+static void null_filter_samples(AVFilterLink *link, AVFilterBufferRef *samplesref) { }
+
+AVFilter avfilter_asink_anullsink = {
+ .name = "anullsink",
+ .description = NULL_IF_CONFIG_SMALL("Do absolutely nothing with the input audio."),
+
+ .priv_size = 0,
+
+ .inputs = (AVFilterPad[]) {
+ {
+ .name = "default",
+ .type = AVMEDIA_TYPE_AUDIO,
+ .filter_samples = null_filter_samples,
+ },
+ { .name = NULL},
+ },
+ .outputs = (AVFilterPad[]) {{ .name = NULL }},
+};