From: Loren Merritt Date: Mon, 22 May 2006 23:07:58 +0000 (+0000) Subject: fix a memory alignment. (no effect on x86, but might be needed for other simd) X-Git-Url: http://www.zmx.ovh/git.videolan.org/?a=commitdiff_plain;h=ae4b97a2530da93b750ac6b525941d408294a216;p=x264.git fix a memory alignment. (no effect on x86, but might be needed for other simd) git-svn-id: svn://svn.videolan.org/x264/trunk@526 df754926-b1dd-0310-bc7b-ec298dee348c --- diff --git a/encoder/slicetype_decision.c b/encoder/slicetype_decision.c index 6df55e3c..f6aff9f5 100644 --- a/encoder/slicetype_decision.c +++ b/encoder/slicetype_decision.c @@ -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;