* #25021: pad SHMHeader so that shared memory buffer is 16-bit aligned.

This improves libswscale performance if using SSE2.
This commit is contained in:
Tristan Matthews
2013-05-27 15:53:47 -04:00
parent b7566243fe
commit 7cd63cfb20
2 changed files with 6 additions and 2 deletions

View File

@ -44,8 +44,10 @@ struct SHMHeader {
unsigned buffer_gen;
int buffer_size;
/* The header will be aligned on 16-bit boundaries */
char padding[8];
char data[0];
char data[];
};
#endif

View File

@ -44,8 +44,10 @@ typedef struct {
unsigned buffer_gen;
int buffer_size;
/* The header will be aligned on 16-bit boundaries */
char padding[8];
char data[0];
char data[];
} SHMHeader;
#endif