avfilter/framepool: actually use specified allocator for audio frames

This bug means audio buffers were never correctly zero'd as intended by
libavfilter/audio.c

Signed-off-by: Niklas Haas <git@haasn.dev>
This commit is contained in:
Niklas Haas
2026-03-24 18:26:26 +01:00
parent 25e187f849
commit 82871857eb

View File

@@ -137,7 +137,7 @@ av_cold FFFramePool *ff_frame_pool_audio_init(AVBufferRef* (*alloc)(size_t size)
if (pool->linesize[0] > SIZE_MAX - align)
goto fail;
pool->pools[0] = av_buffer_pool_init(pool->linesize[0] + align, NULL);
pool->pools[0] = av_buffer_pool_init(pool->linesize[0] + align, alloc);
if (!pool->pools[0])
goto fail;