]> granicus.if.org Git - handbrake/commitdiff
libhb: use the same padding as FFmpeg when allocating buffer.
authorDamiano Galassi <damiog@gmail.com>
Wed, 22 Aug 2018 10:41:00 +0000 (12:41 +0200)
committerDamiano Galassi <damiog@gmail.com>
Wed, 22 Aug 2018 10:41:00 +0000 (12:41 +0200)
libhb/fifo.c

index 8d869c8d9bb42047d02bae906844de012b9c8a03..02af4c7f59cd475597e9649daa0f909ea8856e6a 100644 (file)
@@ -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 )