Commit 61e262f6 authored by Derek Buitenhuis's avatar Derek Buitenhuis Committed by Michael Niedermayer

vp56: Don't use DECLARE_ALIGN on a typedef name

Instead, use it on the first member, since by definition, if
any member is aligned, the whole struct must be, in order to
maintain that alignment.

Fixes compilation with some finicky compilers, like a mix of libclang/msvc

Idea for fix from Måns Rullgård.
Signed-off-by: 's avatarDerek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 4f92d31a
......@@ -36,9 +36,9 @@
typedef struct vp56_context VP56Context;
typedef struct {
int16_t x;
DECLARE_ALIGNED(4, int16_t, x);
int16_t y;
} DECLARE_ALIGNED(4, , VP56mv);
} VP56mv;
typedef void (*VP56ParseVectorAdjustment)(VP56Context *s,
VP56mv *vect);
......
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