diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2017-08-19 23:38:58 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2017-08-21 23:19:18 +0200 |
commit | bc488ec28aec4bc91ba47283c49c9f7f25696eaa (patch) | |
tree | cfde72c15ebde8a1b12ebec153903d466c9625f3 /libavcodec/pixblockdsp.h | |
parent | 898ea658c8a46a105bcf831691a9aad3bb0f606d (diff) | |
download | ffmpeg-bc488ec28aec4bc91ba47283c49c9f7f25696eaa.tar.gz |
avcodec/me_cmp: Fix crashes on ARM due to misalignment
Adds a diff_pixels_unaligned()
Fixes: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=872503
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/pixblockdsp.h')
-rw-r--r-- | libavcodec/pixblockdsp.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/pixblockdsp.h b/libavcodec/pixblockdsp.h index 3ba1596a88..e036700ff0 100644 --- a/libavcodec/pixblockdsp.h +++ b/libavcodec/pixblockdsp.h @@ -33,6 +33,11 @@ typedef struct PixblockDSPContext { const uint8_t *s1 /* align 8 */, const uint8_t *s2 /* align 8 */, ptrdiff_t stride); + void (*diff_pixels_unaligned)(int16_t *av_restrict block /* align 16 */, + const uint8_t *s1, + const uint8_t *s2, + ptrdiff_t stride); + } PixblockDSPContext; void ff_pixblockdsp_init(PixblockDSPContext *c, AVCodecContext *avctx); |