summaryrefslogtreecommitdiff
path: root/libavcodec/dv.c
diff options
context:
space:
mode:
authorSteve L'Homme <slhomme@divxcorp.com>2006-02-05 13:35:17 +0000
committerDiego Biurrun <diego@biurrun.de>2006-02-05 13:35:17 +0000
commit68b51e58ce73d99d2cd9bfa14cb7daaf4a74047e (patch)
tree1a1aa0365436dae8d8e2a80887f13d631d141cad /libavcodec/dv.c
parent04c669ba98955535c00b5283eebafec773d2e83d (diff)
MSVC-compatible __align8/__align16 declaration
patch by Steve Lhomme, steve .dot. lhomme .at. free .dot. fr Originally committed as revision 4942 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/dv.c')
-rw-r--r--libavcodec/dv.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/dv.c b/libavcodec/dv.c
index 55f35ee1a5..08611a9000 100644
--- a/libavcodec/dv.c
+++ b/libavcodec/dv.c
@@ -379,9 +379,9 @@ static inline void dv_decode_video_segment(DVVideoContext *s,
PutBitContext pb, vs_pb;
GetBitContext gb;
BlockInfo mb_data[5 * 6], *mb, *mb1;
- DCTELEM sblock[5*6][64] __align8;
- uint8_t mb_bit_buffer[80 + 4] __align8; /* allow some slack */
- uint8_t vs_bit_buffer[5 * 80 + 4] __align8; /* allow some slack */
+ DECLARE_ALIGNED_8(DCTELEM, sblock[5*6][64]);
+ DECLARE_ALIGNED_8(uint8_t, mb_bit_buffer[80 + 4]); /* allow some slack */
+ DECLARE_ALIGNED_8(uint8_t, vs_bit_buffer[5 * 80 + 4]); /* allow some slack */
const int log2_blocksize= 3-s->avctx->lowres;
assert((((int)mb_bit_buffer)&7)==0);
@@ -779,7 +779,7 @@ static inline void dv_encode_video_segment(DVVideoContext *s,
uint8_t* data;
uint8_t* ptr;
int do_edge_wrap;
- DCTELEM block[64] __align8;
+ DECLARE_ALIGNED_8(DCTELEM, block[64]);
EncBlockInfo enc_blks[5*6];
PutBitContext pbs[5*6];
PutBitContext* pb;