From: Damiano Galassi Date: Wed, 22 Aug 2018 10:41:00 +0000 (+0200) Subject: libhb: use the same padding as FFmpeg when allocating buffer. X-Git-Tag: 1.2.0~181 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b703c42420c4e832d86596c2cd9194ea4644b3c3;p=handbrake libhb: use the same padding as FFmpeg when allocating buffer. --- 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 )