diff options
author | Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> | 2016-01-13 00:52:58 +0100 |
---|---|---|
committer | Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> | 2016-01-28 01:21:15 +0100 |
commit | 1d8a6a46a30393608fa618472aeb48bc5e469db2 (patch) | |
tree | 2aa6d535a0bc7bbea8f45eeabe68c05a266ba88e /libavcodec/hevcpred_template.c | |
parent | e577e712a8a22571068f6d02177d067d67a21931 (diff) | |
download | ffmpeg-1d8a6a46a30393608fa618472aeb48bc5e469db2.tar.gz |
dca: fix misaligned access in avpriv_dca_convert_bitstream
src and dst are only 8-bit-aligned, so accessing them as uint16_t causes
SIGBUS crashes on architectures like sparc.
This fixes ubsan runtime error: load of misaligned address for type
'const uint16_t', which requires 2 byte alignment
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
(cherry picked from commit 44ac13eed49593f4f8efdb72ab0d5b48e05aa305)
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Diffstat (limited to 'libavcodec/hevcpred_template.c')
0 files changed, 0 insertions, 0 deletions