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

Paul B Mahol onemda at gmail.com
Thu Aug 5 14:17:15 EEST 2021


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

diff --git a/libavfilter/avfilter.h b/libavfilter/avfilter.h
index b82f72d040..a71745283c 100644
--- a/libavfilter/avfilter.h
+++ b/libavfilter/avfilter.h
@@ -584,6 +584,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