mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-28 20:53:54 +02:00
avcodec/utils: Fix encoder allocation size
Fixes Ticket2645 Found-by: Darrell Walisser Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
57655c6080
commit
175e916fa2
@ -423,7 +423,7 @@ static int update_frame_pool(AVCodecContext *avctx, AVFrame *frame)
|
||||
av_buffer_pool_uninit(&pool->pools[i]);
|
||||
pool->linesize[i] = picture.linesize[i];
|
||||
if (size[i]) {
|
||||
pool->pools[i] = av_buffer_pool_init(size[i] + 16,
|
||||
pool->pools[i] = av_buffer_pool_init(size[i] + 16 + STRIDE_ALIGN - 1,
|
||||
CONFIG_MEMORY_POISONING ?
|
||||
NULL :
|
||||
av_buffer_allocz);
|
||||
|
Loading…
Reference in New Issue
Block a user