mirror of
https://git.jami.net/savoirfairelinux/jami-daemon.git
synced 2025-08-12 22:09:25 +08:00
* #25021: pad SHMHeader so that shared memory buffer is 16-bit aligned.
This improves libswscale performance if using SSE2.
This commit is contained in:
@ -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
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user