Fix potential misaligment crash in AVX2 denoise_dct
authorHenrik Gramner <henrik@gramner.com>
Sun, 2 Jun 2013 16:41:17 +0000 (18:41 +0200)
committerJason Garrett-Glaser <jason@x264.com>
Wed, 3 Jul 2013 00:13:06 +0000 (17:13 -0700)
common/common.h

index b7cd22f..c1d6a0c 100644 (file)
@@ -904,8 +904,8 @@ struct x264_t
     uint32_t (*nr_residual_sum)[64];
     uint32_t *nr_count;
 
-    ALIGNED_16( udctcoef nr_offset_denoise[4][64] );
-    ALIGNED_16( uint32_t nr_residual_sum_buf[2][4][64] );
+    ALIGNED_N( udctcoef nr_offset_denoise[4][64] );
+    ALIGNED_N( uint32_t nr_residual_sum_buf[2][4][64] );
     uint32_t nr_count_buf[2][4];
 
     uint8_t luma2chroma_pixel[7]; /* Subsampled pixel size */