diff mbox series

[FFmpeg-devel,1/2] lavfi/avf_concat: add some doxy.

Message ID 20200809105653.93859-1-george@nsup.org
State New
Headers show
Series [FFmpeg-devel,1/2] lavfi/avf_concat: add some doxy. | expand

Checks

Context Check Description
andriy/default pending
andriy/make success Make finished
andriy/make_fate success Make fate finished

Commit Message

Nicolas George Aug. 9, 2020, 10:56 a.m. UTC
The semantic of delta_pts is not obvious.

Signed-off-by: Nicolas George <george@nsup.org>
---
 libavfilter/avf_concat.c | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
diff mbox series

Patch

diff --git a/libavfilter/avf_concat.c b/libavfilter/avf_concat.c
index 28bd5407ad..246628498a 100644
--- a/libavfilter/avf_concat.c
+++ b/libavfilter/avf_concat.c
@@ -224,6 +224,12 @@  static void close_input(AVFilterContext *ctx, unsigned in_no)
            ctx->input_pads[in_no].name, cat->nb_in_active);
 }
 
+/**
+ * Compute the delta_ts of the next segment.
+ *
+ * If everything starts at 0 as expected, it is the timestamp where the
+ * next segment begins in the output.
+ */
 static void find_next_delta_ts(AVFilterContext *ctx, int64_t *seg_delta)
 {
     ConcatContext *cat = ctx->priv;
@@ -238,6 +244,14 @@  static void find_next_delta_ts(AVFilterContext *ctx, int64_t *seg_delta)
     *seg_delta = pts;
 }
 
+/**
+ * Send silence to pad audio streams to the duration of video streams
+ *
+ * @param ctx        codec context
+ * @param in_no      input number
+ * @param out_no     output number
+ * @param seg_delta  segment delta, i.e. output timestamp to reach.
+ */
 static int send_silence(AVFilterContext *ctx, unsigned in_no, unsigned out_no,
                         int64_t seg_delta)
 {