diff options
author | Paul B Mahol <onemda@gmail.com> | 2018-10-02 22:57:00 +0300 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2018-10-04 13:10:20 +0300 |
commit | 7d65fe87e9d35217d3b2e9fbbd4a088704c9bb10 (patch) | |
tree | bb44e456bc4d3d1aff805de83440d02c322bde1c /libavfilter/avfilter.c | |
parent | ebc3d04b8df4e11b1343090fed1014832d5cf46d (diff) |
avfilter: add ff_inlink_queued_samples()
Diffstat (limited to 'libavfilter/avfilter.c')
-rw-r--r-- | libavfilter/avfilter.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c index 27d163f79a..93e866b79c 100644 --- a/libavfilter/avfilter.c +++ b/libavfilter/avfilter.c @@ -1458,6 +1458,11 @@ int ff_inlink_check_available_frame(AVFilterLink *link) return ff_framequeue_queued_frames(&link->fifo) > 0; } +int ff_inlink_queued_samples(AVFilterLink *link) +{ + return ff_framequeue_queued_samples(&link->fifo); +} + int ff_inlink_check_available_samples(AVFilterLink *link, unsigned min) { uint64_t samples = ff_framequeue_queued_samples(&link->fifo); |