Re: [FFmpeg-devel] [PATCH] dca: fix misaligned access in avpriv_dca_convert_bitstream

2016-01-13 Thread Michael Niedermayer
On Wed, Jan 13, 2016 at 12:56:39AM +0100, Andreas Cadhalpun wrote: > 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

Re: [FFmpeg-devel] [PATCH] dca: fix misaligned access in avpriv_dca_convert_bitstream

2016-01-13 Thread Andreas Cadhalpun
On 13.01.2016 20:07, Michael Niedermayer wrote: > On Wed, Jan 13, 2016 at 12:56:39AM +0100, Andreas Cadhalpun wrote: >> 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

[FFmpeg-devel] [PATCH] dca: fix misaligned access in avpriv_dca_convert_bitstream

2016-01-12 Thread Andreas Cadhalpun
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 Signed-off-by: Andreas Cadhalpun