@@ -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)
{
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(+)