]> granicus.if.org Git - libx264/commitdiff
fix a memory alignment. (no effect on x86, but might be needed for other simd)
authorLoren Merritt <pengvado@videolan.org>
Mon, 22 May 2006 23:07:58 +0000 (23:07 +0000)
committerLoren Merritt <pengvado@videolan.org>
Mon, 22 May 2006 23:07:58 +0000 (23:07 +0000)
git-svn-id: svn://svn.videolan.org/x264/trunk@526 df754926-b1dd-0310-bc7b-ec298dee348c

encoder/slicetype_decision.c

index 6df55e3c6c49189fd93dbb81368c282010bca34c..f6aff9f5d34c02cb6081204a16a4133f030589bc 100644 (file)
@@ -196,7 +196,7 @@ int x264_slicetype_mb_cost( x264_t *h, x264_mb_analysis_t *a,
 
 lowres_intra_mb:
     {
-        uint8_t pix_buf[9*FDEC_STRIDE];
+        DECLARE_ALIGNED( uint8_t, pix_buf[9*FDEC_STRIDE], 8 );
         uint8_t *pix = &pix_buf[8+FDEC_STRIDE - 1];
         uint8_t *src = &fenc->lowres[0][i_pel_offset - 1];
         int intra_penalty = 5 + 10 * b_bidir;