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.c | |
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.c')
-rw-r--r-- | libavcodec/pixblockdsp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/pixblockdsp.c b/libavcodec/pixblockdsp.c index 417c944e00..50e1d1d735 100644 --- a/libavcodec/pixblockdsp.c +++ b/libavcodec/pixblockdsp.c @@ -82,6 +82,7 @@ av_cold void ff_pixblockdsp_init(PixblockDSPContext *c, AVCodecContext *avctx) { const unsigned high_bit_depth = avctx->bits_per_raw_sample > 8; + c->diff_pixels_unaligned = c->diff_pixels = diff_pixels_c; switch (avctx->bits_per_raw_sample) { |