X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fdstdec.c;h=0614c99c4bb4991a0b56fff3182707d88ecccd83;hb=2e8b0446c6798947dac77fee4a06f9c4e8131ab5;hp=368cb649319d06a60294aa0a066a4a407f3e5c51;hpb=75bf51ef87f4cb5afca701b33bf22339d8a4db24;p=ffmpeg diff --git a/libavcodec/dstdec.c b/libavcodec/dstdec.c index 368cb649319..0614c99c4bb 100644 --- a/libavcodec/dstdec.c +++ b/libavcodec/dstdec.c @@ -70,7 +70,7 @@ typedef struct DSTContext { GetBitContext gb; ArithCoder ac; Table fsets, probs; - DECLARE_ALIGNED(64, uint8_t, status)[DST_MAX_CHANNELS][16]; + DECLARE_ALIGNED(16, uint8_t, status)[DST_MAX_CHANNELS][16]; DECLARE_ALIGNED(16, int16_t, filter)[DST_MAX_ELEMENTS][16][256]; DSDContext dsdctx[DST_MAX_CHANNELS]; } DSTContext; @@ -343,8 +343,8 @@ static int decode_frame(AVCodecContext *avctx, void *data, v = ((predict >> 15) ^ residual) & 1; dsd[((i >> 3) * channels + ch) << 2] |= v << (7 - (i & 0x7 )); - AV_WN64A(status + 8, (AV_RN64A(status + 8) << 1) | ((AV_RN64A(status) >> 63) & 1)); - AV_WN64A(status, (AV_RN64A(status) << 1) | v); + AV_WL64A(status + 8, (AV_RL64A(status + 8) << 1) | ((AV_RL64A(status) >> 63) & 1)); + AV_WL64A(status, (AV_RL64A(status) << 1) | v); } }