changeset 4675:c23a5c8263bc libavcodec

force 16-bytes alignement of block array, as needed by the implementation of ff_dct_sse2 patch by John Dalgliesh %johnd A defyne P org%
author gpoirier
date Thu, 15 Mar 2007 23:45:20 +0000
parents d4de8d9a2788
children 046456cf7d31
files dv.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/dv.c	Thu Mar 15 21:22:10 2007 +0000
+++ b/dv.c	Thu Mar 15 23:45:20 2007 +0000
@@ -838,7 +838,7 @@
     uint8_t*  data;
     uint8_t*  ptr;
     int       do_edge_wrap;
-    DECLARE_ALIGNED_8(DCTELEM, block[64]);
+    DECLARE_ALIGNED_16(DCTELEM, block[64]);
     EncBlockInfo  enc_blks[5*6];
     PutBitContext pbs[5*6];
     PutBitContext* pb;
@@ -846,7 +846,7 @@
     int       vs_bit_size = 0;
     int       qnos[5];
 
-    assert((((int)block) & 7) == 0);
+    assert((((int)block) & 15) == 0);
 
     enc_blk = &enc_blks[0];
     pb = &pbs[0];