Message ID | 20231224232624.30355-1-michael@niedermayer.cc |
---|---|
State | New |
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 |
On Mon, Dec 25, 2023 at 12:26:21AM +0100, Michael Niedermayer wrote: > Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> > --- > libavfilter/af_stereowiden.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) will apply patchset [...]
diff --git a/libavfilter/af_stereowiden.c b/libavfilter/af_stereowiden.c index f7a6a91ae40..1273c77116e 100644 --- a/libavfilter/af_stereowiden.c +++ b/libavfilter/af_stereowiden.c @@ -72,7 +72,7 @@ static int config_input(AVFilterLink *inlink) AVFilterContext *ctx = inlink->dst; StereoWidenContext *s = ctx->priv; - s->length = s->delay * inlink->sample_rate / 1000; + s->length = lrintf(s->delay * inlink->sample_rate / 1000); s->length *= 2; if (s->length == 0) return AVERROR(EINVAL);
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> --- libavfilter/af_stereowiden.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)