vp56: Don't use DECLARE_ALIGN on a typedef name
authorDerek Buitenhuis <derek.buitenhuis@gmail.com>
Mon, 27 Aug 2012 02:09:10 +0000 (22:09 -0400)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 28 Aug 2012 13:04:16 +0000 (15:04 +0200)
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: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/vp56.h

index 12f9380..d8f7ce6 100644 (file)
@@ -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);