aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/utils.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-06-11 00:33:27 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-06-11 01:15:39 +0200
commit175e916fa20b7887bdb29809817985e481ae0888 (patch)
tree916d0155ef81adcd8abe5358e8f1cf6fe2f78192 /libavcodec/utils.c
parent57655c608078cc14476e798a1e31e5eeabf1b278 (diff)
downloadffmpeg-175e916fa20b7887bdb29809817985e481ae0888.tar.gz
avcodec/utils: Fix encoder allocation size
Fixes Ticket2645 Found-by: Darrell Walisser Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r--libavcodec/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 01e3fbd0dd..15ef713217 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -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);