aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/vp56.h
diff options
context:
space:
mode:
authorDerek Buitenhuis <derek.buitenhuis@gmail.com>2012-08-26 20:57:08 -0400
committerDerek Buitenhuis <derek.buitenhuis@gmail.com>2012-08-27 14:08:17 -0400
commit5395d882b4c06825f43239d2e8869c82275bb3b6 (patch)
tree09fbb10f8684c009489f8042c2cc7f842422b487 /libavcodec/vp56.h
parent0de4a563e4f301c1abc2032d5c13c3cbb39e430c (diff)
downloadffmpeg-5395d882b4c06825f43239d2e8869c82275bb3b6.tar.gz
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. Idea for fix from Måns Rullgård. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Diffstat (limited to 'libavcodec/vp56.h')
-rw-r--r--libavcodec/vp56.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/vp56.h b/libavcodec/vp56.h
index d03b733d19..000dfe0098 100644
--- a/libavcodec/vp56.h
+++ b/libavcodec/vp56.h
@@ -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);