Message ID | 20231224232624.30355-4-michael@niedermayer.cc |
---|---|
State | Accepted |
Commit | e6459abfadabb43cdc4c807975e1a854da23644d |
Headers | show |
Series | [FFmpeg-devel,1/4] avfilter/af_stereowiden: Round length to nearest | expand |
Context | Check | Description |
---|---|---|
yinshiyou/make_loongarch64 | success | Make finished |
yinshiyou/make_fate_loongarch64 | success | Make fate finished |
andriy/make_x86 | success | Make finished |
andriy/make_fate_x86 | success | Make fate finished |
diff --git a/libavfilter/af_stereotools.c b/libavfilter/af_stereotools.c index 4bcd696cf90..915edecc539 100644 --- a/libavfilter/af_stereotools.c +++ b/libavfilter/af_stereotools.c @@ -119,7 +119,7 @@ static int config_input(AVFilterLink *inlink) AVFilterContext *ctx = inlink->dst; StereoToolsContext *s = ctx->priv; - s->length = FFALIGN(inlink->sample_rate / 10, 2); + s->length = FFALIGN((inlink->sample_rate + 9) / 10, 2); if (!s->buffer) s->buffer = av_calloc(s->length, sizeof(*s->buffer)); if (!s->buffer)