45 #define OFFSET(x) offsetof(SilenceDetectContext, x)
46 #define FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_AUDIO_PARAM
62 silence->
class = &silencedetect_class;
97 double *p = (
double *)insamples->
data[0];
100 if (*p < silence->
noise && *p > -silence->
noise) {
101 if (!silence->
start) {
112 if (silence->
start) {
118 "silence_end: %s | silence_duration: %s\n",
176 .
name =
"silencedetect",
181 .
inputs = silencedetect_inputs,
182 .
outputs = silencedetect_outputs,
183 .priv_class = &silencedetect_class,