[FFmpeg-devel] [PATCH] Fix potentially unaligned accesses in ff_copy_bits()

Måns Rullgård mans
Wed Jul 1 19:49:20 CEST 2009


Michael Niedermayer <michaelni at gmx.at> writes:

> On Wed, Jul 01, 2009 at 02:24:17PM +0100, Mans Rullgard wrote:
>> A pointer should never be assigned a value which may have less than the
>> required alignment of the target type.  Compilers may assume pointer
>> values have the required alignment, and emit normal load/store instructions.
>> 
>> Unaligned pointers should use a character type or compiler-specific
>> type modifiers.
>> ---
>>  libavcodec/bitstream.c |    5 ++---
>>  1 files changed, 2 insertions(+), 3 deletions(-)
>
> ok

Applied.

-- 
M?ns Rullg?rd
mans at mansr.com



More information about the ffmpeg-devel mailing list