48 #define OFFSET(x) offsetof(ASyncContext, x)
49 #define A AV_OPT_FLAG_AUDIO_PARAM
50 #define F AV_OPT_FLAG_FILTERING_PARAM
53 {
"min_delta",
"Minimum difference between timestamps and audio data "
54 "(in seconds) to trigger padding/trimmin the data.",
OFFSET(min_delta_sec),
AV_OPT_TYPE_FLOAT, { .dbl = 0.1 }, 0, INT_MAX,
A|
F },
55 {
"max_comp",
"Maximum compensation in samples per second.",
OFFSET(max_comp),
AV_OPT_TYPE_INT, { .i64 = 500 }, 0, INT_MAX,
A|
F },
67 s->
class = &asyncts_class;
215 out_size = av_clipl_int32((int64_t)out_size + delta);
237 nb_channels, buf->
format);
251 delta, nb_channels, buf->
format);
306 .
inputs = avfilter_af_asyncts_inputs,
307 .
outputs = avfilter_af_asyncts_outputs,
308 .priv_class = &asyncts_class,