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