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:05:05 +0100 |
commit | 41157f6bfff364b82a47c260b99a43d9489311ff (patch) | |
tree | 0e1721cd27de92ca3dc3577a05a37a6c62441e9c /doc/examples/transcoding.c | |
parent | f106232e9405782fee6f7d74d9ecb564e280d132 (diff) | |
download | ffmpeg-41157f6bfff364b82a47c260b99a43d9489311ff.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 'doc/examples/transcoding.c')
0 files changed, 0 insertions, 0 deletions