const double offset = 1. - s->depth / 2.;
int i;
- s->table_size = inlink->sample_rate / s->freq;
+ s->table_size = lrint(inlink->sample_rate / s->freq + 0.5);
s->table = av_malloc_array(s->table_size, sizeof(*s->table));
if (!s->table)
return AVERROR(ENOMEM);
{ NULL }
};
-AVFilter ff_af_tremolo = {
+const AVFilter ff_af_tremolo = {
.name = "tremolo",
.description = NULL_IF_CONFIG_SMALL("Apply tremolo effect."),
.priv_size = sizeof(TremoloContext),