From b703c42420c4e832d86596c2cd9194ea4644b3c3 Mon Sep 17 00:00:00 2001 From: Damiano Galassi Date: Wed, 22 Aug 2018 12:41:00 +0200 Subject: [PATCH] libhb: use the same padding as FFmpeg when allocating buffer. --- libhb/fifo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libhb/fifo.c b/libhb/fifo.c index 8d869c8d9..02af4c7f5 100644 --- a/libhb/fifo.c +++ b/libhb/fifo.c @@ -348,7 +348,7 @@ hb_buffer_t * hb_buffer_init_internal( int size ) // Note that we can't simply align the end of our buffer because // sometimes we feed data to these libraries starting from arbitrary // points within the buffer. - int alloc = size + 16; + int alloc = size + AV_INPUT_BUFFER_PADDING_SIZE; hb_fifo_t *buffer_pool = size_to_pool( alloc ); if( buffer_pool ) -- 2.40.0