aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/avfilter.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2012-05-27 14:18:49 +0200
committerAnton Khirnov <anton@khirnov.net>2012-06-22 21:23:42 +0200
commitf75be9856a99739b2c22ed73a3c51df0f54a5ce9 (patch)
tree546ad811ece676f7b2be718b5507caa8d51718a9 /libavfilter/avfilter.h
parent58b049f2fa4f192b00baadb5f1f32ca366f936ea (diff)
downloadffmpeg-f75be9856a99739b2c22ed73a3c51df0f54a5ce9.tar.gz
lavfi: allow audio filters to request a given number of samples.
This makes synchronization simpler for filters with multiple inputs.
Diffstat (limited to 'libavfilter/avfilter.h')
-rw-r--r--libavfilter/avfilter.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/libavfilter/avfilter.h b/libavfilter/avfilter.h
index c92f7e14d4..f09f0869f4 100644
--- a/libavfilter/avfilter.h
+++ b/libavfilter/avfilter.h
@@ -595,6 +595,15 @@ struct AVFilterLink {
AVFilterFormats *out_samplerates;
struct AVFilterChannelLayouts *in_channel_layouts;
struct AVFilterChannelLayouts *out_channel_layouts;
+
+ /**
+ * Audio only, the destination filter sets this to a non-zero value to
+ * request that buffers with the given number of samples should be sent to
+ * it. AVFilterPad.needs_fifo must also be set on the corresponding input
+ * pad.
+ * Last buffer before EOF will be padded with silence.
+ */
+ int request_samples;
};
/**