[FFmpeg-devel] [PATCH 4/7] lavu/aes: align AVAES struct

James Almer jamrial at gmail.com
Mon Oct 12 05:35:28 CEST 2015


On 10/12/2015 12:20 AM, Rodger Combs wrote:
> ---
>  libavutil/aes.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/libavutil/aes.c b/libavutil/aes.c
> index 06b1872..ab2d602 100644
> --- a/libavutil/aes.c
> +++ b/libavutil/aes.c
> @@ -274,7 +274,7 @@ int av_aes_init(AVAES *a, const uint8_t *key, int key_bits, int decrypt)
>  int main(int argc, char **argv)
>  {
>      int i, j;
> -    AVAES b;
> +    DECLARE_ALIGNED(32, AVAES, b);

I think each of the elements in the struct should be aligned instead.
In any case, if you end up aligning this here, you need to use LOCAL_ALIGNED_32.

>      uint8_t rkey[2][16] = {
>          { 0 },
>          { 0x10, 0xa5, 0x88, 0x69, 0xd7, 0x4b, 0xe5, 0xa3,
> 



More information about the ffmpeg-devel mailing list