[FFmpeg-devel] [PATCH] avfilter/avfilter: add sample_count_in and sample_count_out

Paul B Mahol onemda at gmail.com
Wed Jun 3 16:39:19 EEST 2020


Signed-off-by: Paul B Mahol <onemda at gmail.com>
---
To be used by latency filters.
---
 libavfilter/avfilter.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/libavfilter/avfilter.h b/libavfilter/avfilter.h
index 49b4f7a939..8ebcb3eacc 100644
--- a/libavfilter/avfilter.h
+++ b/libavfilter/avfilter.h
@@ -582,6 +582,11 @@ struct AVFilterLink {
      */
     int64_t frame_count_in, frame_count_out;
 
+    /**
+     * Number of past samples sent through the link.
+     */
+    int64_t sample_count_in, sample_count_out;
+
     /**
      * A pointer to a FFFramePool struct.
      */
-- 
2.17.1



More information about the ffmpeg-devel mailing list