44 #define OFFSET(x) offsetof(ASNSContext, x)
45 #define FLAGS AV_OPT_FLAG_AUDIO_PARAM|AV_OPT_FLAG_FILTERING_PARAM
48 {
"nb_out_samples",
"set the number of per-frame output samples",
OFFSET(nb_out_samples),
AV_OPT_TYPE_INT, {.i64=1024}, 1, INT_MAX,
FLAGS },
49 {
"n",
"set the number of per-frame output samples",
OFFSET(nb_out_samples),
AV_OPT_TYPE_INT, {.i64=1024}, 1, INT_MAX,
FLAGS },
89 int ret, nb_out_samples, nb_pad_samples;
124 return nb_out_samples;
136 av_log(ctx,
AV_LOG_DEBUG,
"No space for %d samples, stretching audio fifo\n", nb_samples);
140 "Stretching audio fifo failed, discarded %d samples\n", nb_samples);
188 .
name =
"asetnsamples",
191 .priv_class = &asetnsamples_class,
194 .
inputs = asetnsamples_inputs,
195 .
outputs = asetnsamples_outputs,