mirror of
https://mirror.skon.top/https://github.com/FFmpeg/FFmpeg
synced 2026-04-20 21:00:41 +08:00
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user