diff options
author | Martin Vignali <martin.vignali@gmail.com> | 2017-10-02 02:29:32 +0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2017-10-04 01:47:37 +0300 |
commit | cbbec68847ed3485900e83ec231871f71bb97d0d (patch) | |
tree | e720235468b4ae41c4e7dd1c2011d28a40a99b99 /libavcodec/bink.c | |
parent | 4590d073ccdc7c3ce0384d5b1fba56b3f6673535 (diff) |
libavcodec/blockdsp : add AVX version
Also modify the required alignment, to 32 instead of 16
for several codecs
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/bink.c')
-rw-r--r-- | libavcodec/bink.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/bink.c b/libavcodec/bink.c index cc55870114..346b6cda9d 100644 --- a/libavcodec/bink.c +++ b/libavcodec/bink.c @@ -813,7 +813,7 @@ static int binkb_decode_plane(BinkContext *c, AVFrame *frame, GetBitContext *gb, int v, col[2]; const uint8_t *scan; int xoff, yoff; - LOCAL_ALIGNED_16(int16_t, block, [64]); + LOCAL_ALIGNED_32(int16_t, block, [64]); LOCAL_ALIGNED_16(int32_t, dctblock, [64]); int coordmap[64]; int ybias = is_key ? -15 : 0; @@ -976,7 +976,7 @@ static int bink_decode_plane(BinkContext *c, AVFrame *frame, GetBitContext *gb, uint8_t *dst, *prev, *ref_start, *ref_end; int v, col[2]; const uint8_t *scan; - LOCAL_ALIGNED_16(int16_t, block, [64]); + LOCAL_ALIGNED_32(int16_t, block, [64]); LOCAL_ALIGNED_16(uint8_t, ublock, [64]); LOCAL_ALIGNED_16(int32_t, dctblock, [64]); int coordmap[64]; |