Commit 96aafd2c authored by Jean-Paul Saman's avatar Jean-Paul Saman

Use the maximum possible alignment on this system.

Configure will put its test results as ATTRIBUTE_ALIGNED_MAX in config.h. Use that value to pass alignment informtation to vlc block and picture buffers.
parent dd84476a
...@@ -76,7 +76,7 @@ static void BlockRelease( block_t *p_block ) ...@@ -76,7 +76,7 @@ static void BlockRelease( block_t *p_block )
} }
/* Memory alignment */ /* Memory alignment */
#define BLOCK_ALIGN 32 #define BLOCK_ALIGN ATTRIBUTE_ALIGNED_MAX
/* Initial size of reserved header and footer */ /* Initial size of reserved header and footer */
#define BLOCK_PADDING_SIZE 32 #define BLOCK_PADDING_SIZE 32
/* Maximum size of reserved footer before we release with realloc() */ /* Maximum size of reserved footer before we release with realloc() */
......
...@@ -571,7 +571,7 @@ int __vout_AllocatePicture( vlc_object_t *p_this, picture_t *p_pic, ...@@ -571,7 +571,7 @@ int __vout_AllocatePicture( vlc_object_t *p_this, picture_t *p_pic,
i_bytes = p_pic->format.i_bits_per_pixel * i_bytes = p_pic->format.i_bits_per_pixel *
i_width_aligned * i_height_aligned / 8; i_width_aligned * i_height_aligned / 8;
p_pic->p_data = vlc_memalign( &p_pic->p_data_orig, 16, i_bytes ); p_pic->p_data = vlc_memalign( &p_pic->p_data_orig, ATTRIBUTE_ALIGNED_MAX, i_bytes );
if( p_pic->p_data == NULL ) if( p_pic->p_data == NULL )
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment