aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/audio.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2012-07-02 20:13:40 +0200
committerAnton Khirnov <anton@khirnov.net>2012-07-09 08:25:19 +0200
commitcd99146253cf9de5dad5694b97027d5612fdc61d (patch)
tree0b53395aa59459574c2e5fa1c277b4267e01c4a0 /libavfilter/audio.c
parent8d18bc550e7dfc62bc872507a02ae2d7827882d6 (diff)
downloadffmpeg-cd99146253cf9de5dad5694b97027d5612fdc61d.tar.gz
lavfi: add error handling to filter_samples().
Diffstat (limited to 'libavfilter/audio.c')
-rw-r--r--libavfilter/audio.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/libavfilter/audio.c b/libavfilter/audio.c
index 14896081a3..d518b247a3 100644
--- a/libavfilter/audio.c
+++ b/libavfilter/audio.c
@@ -146,15 +146,15 @@ fail:
return NULL;
}
-static void default_filter_samples(AVFilterLink *link,
- AVFilterBufferRef *samplesref)
+static int default_filter_samples(AVFilterLink *link,
+ AVFilterBufferRef *samplesref)
{
- ff_filter_samples(link->dst->outputs[0], samplesref);
+ return ff_filter_samples(link->dst->outputs[0], samplesref);
}
-void ff_filter_samples(AVFilterLink *link, AVFilterBufferRef *samplesref)
+int ff_filter_samples(AVFilterLink *link, AVFilterBufferRef *samplesref)
{
- void (*filter_samples)(AVFilterLink *, AVFilterBufferRef *);
+ int (*filter_samples)(AVFilterLink *, AVFilterBufferRef *);
AVFilterPad *dst = link->dstpad;
AVFilterBufferRef *buf_out;
@@ -185,6 +185,6 @@ void ff_filter_samples(AVFilterLink *link, AVFilterBufferRef *samplesref)
} else
buf_out = samplesref;
- filter_samples(link, buf_out);
+ return filter_samples(link, buf_out);
}