52 #define OFFSET(x) offsetof(ASyncContext, x)
53 #define A AV_OPT_FLAG_AUDIO_PARAM
54 #define F AV_OPT_FLAG_FILTERING_PARAM
57 {
"min_delta",
"Minimum difference between timestamps and audio data "
58 "(in seconds) to trigger padding/trimmin the data.",
OFFSET(min_delta_sec),
AV_OPT_TYPE_FLOAT, { .dbl = 0.1 }, 0, INT_MAX,
A|
F },
59 {
"max_comp",
"Maximum compensation in samples per second.",
OFFSET(max_comp),
AV_OPT_TYPE_INT, { .i64 = 500 }, 0, INT_MAX,
A|
F },
155 buf->
linesize[0], nb_samples, NULL, 0, 0);
211 out_size = av_clipl_int32((int64_t)out_size + delta);
218 if (comp != s->
comp) {
239 int planes = planar ? nb_channels : 1;
246 nb_channels, buf->
format);
248 for (ch = 0; ch < planes; ch++)
253 for (ch = 0; ch < planes; ch++)
260 delta, nb_channels, buf->
format);
278 if (new_pts > s->
pts) {
320 .priv_class = &asyncts_class,
321 .
inputs = avfilter_af_asyncts_inputs,
322 .
outputs = avfilter_af_asyncts_outputs,