[libav-commits] mpc7: align local temp buffer

Justin Ruggles git at libav.org
Tue Jan 31 01:10:54 CET 2012


Module: libav
Branch: master
Commit: eac31dd163cd9168860aeed88112455cb44cc4f1

Author:    Justin Ruggles <justin.ruggles at gmail.com>
Committer: Justin Ruggles <justin.ruggles at gmail.com>
Date:      Mon Jan 30 14:29:05 2012 -0500

mpc7: align local temp buffer

DSPContext.bswap_buf() requires aligned output

---

 libavcodec/mpc7.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavcodec/mpc7.c b/libavcodec/mpc7.c
index 290ecfb..8bc0853 100644
--- a/libavcodec/mpc7.c
+++ b/libavcodec/mpc7.c
@@ -53,7 +53,7 @@ static av_cold int mpc7_decode_init(AVCodecContext * avctx)
     int i, j;
     MPCContext *c = avctx->priv_data;
     GetBitContext gb;
-    uint8_t buf[16];
+    LOCAL_ALIGNED_16(uint8_t, buf, [16]);
     static int vlc_initialized = 0;
 
     static VLC_TYPE scfi_table[1 << MPC7_SCFI_BITS][2];



More information about the libav-commits mailing list