aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/audio.h
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.h
parent8d18bc550e7dfc62bc872507a02ae2d7827882d6 (diff)
downloadffmpeg-cd99146253cf9de5dad5694b97027d5612fdc61d.tar.gz
lavfi: add error handling to filter_samples().
Diffstat (limited to 'libavfilter/audio.h')
-rw-r--r--libavfilter/audio.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/libavfilter/audio.h b/libavfilter/audio.h
index 9af44f8a1c..fa448e2fd6 100644
--- a/libavfilter/audio.h
+++ b/libavfilter/audio.h
@@ -49,7 +49,10 @@ AVFilterBufferRef *ff_get_audio_buffer(AVFilterLink *link, int perms,
* @param samplesref a reference to the buffer of audio samples being sent. The
* receiving filter will free this reference when it no longer
* needs it or pass it on to the next filter.
+ *
+ * @return >= 0 on success, a negative AVERROR on error. The receiving filter
+ * is responsible for unreferencing samplesref in case of error.
*/
-void ff_filter_samples(AVFilterLink *link, AVFilterBufferRef *samplesref);
+int ff_filter_samples(AVFilterLink *link, AVFilterBufferRef *samplesref);
#endif /* AVFILTER_AUDIO_H */