46 #define OFFSET(x) offsetof(APadContext, x)
47 #define A AV_OPT_FLAG_AUDIO_PARAM|AV_OPT_FLAG_FILTERING_PARAM
50 {
"packet_size",
"set silence packet size",
OFFSET(packet_size),
AV_OPT_TYPE_INT, { .i64 = 4096 }, 0, INT_MAX,
A },
51 {
"pad_len",
"number of samples of silence to add",
OFFSET(pad_len),
AV_OPT_TYPE_INT64, { .i64 = 0 }, 0, INT64_MAX,
A },
52 {
"whole_len",
"target number of samples in the audio stream",
OFFSET(whole_len),
AV_OPT_TYPE_INT64, { .i64 = 0 }, 0, INT64_MAX,
A },
64 av_log(ctx,
AV_LOG_ERROR,
"Both whole and pad length are set, this is not possible\n");
153 .priv_class = &apad_class,