diff mbox series

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

Message ID 20210805102911.13104-1-onemda@gmail.com
State New
Headers show
Series [FFmpeg-devel] avfilter/avfilter: add sample_count_in and sample_count_out | expand

Checks

Context Check Description
andriy/x86_make success Make finished
andriy/x86_make_fate success Make fate finished
andriy/PPC64_make success Make finished
andriy/PPC64_make_fate success Make fate finished

Commit Message

Paul B Mahol Aug. 5, 2021, 10:29 a.m. UTC
Signed-off-by: Paul B Mahol <onemda@gmail.com>
---
 libavfilter/avfilter.h | 5 +++++
 1 file changed, 5 insertions(+)

Comments

Nicolas George Aug. 5, 2021, 10:32 a.m. UTC | #1
Paul B Mahol (12021-08-05):
> Signed-off-by: Paul B Mahol <onemda@gmail.com>
> ---
>  libavfilter/avfilter.h | 5 +++++
>  1 file changed, 5 insertions(+)

Ok for the principle, but you seem to have forgotten to update
avfilter.c to make these fields useful.

Regards,
diff mbox series

Patch

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.
      */