[FFmpeg-devel] [PATCH] swscale: fix unaligned accesses in (RGB|BGR)32_1 to YUV conversion

Måns Rullgård mans
Mon Aug 23 23:22:52 CEST 2010


Michael Niedermayer <michaelni at gmx.at> writes:

> On Mon, Aug 23, 2010 at 10:06:25PM +0100, Mans Rullgard wrote:
>> ---
>>  swscale.c          |   29 +++++++++++++++++------------
>>  swscale_template.c |   29 ++++++++++++-----------------
>>  2 files changed, 29 insertions(+), 29 deletions(-)
> [...]
>>  BGR2Y(uint16_t, rgb16ToY, 0, 0, 0, 0xF800, 0x07E0, 0x001F, RY    , GY<<5, BY<<11, RGB2YUV_SHIFT+8)
>>  BGR2Y(uint16_t, rgb15ToY, 0, 0, 0, 0x7C00, 0x03E0, 0x001F, RY    , GY<<5, BY<<10, RGB2YUV_SHIFT+7)
>>  
>> +
>>  static inline void abgrToA(uint8_t *dst, const uint8_t *src, long width, uint32_t *unused)
>>  {
>>      int i;
>
> without that, ok and thanks

Oops, where did that come from?  Fixed and applied.

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



More information about the ffmpeg-devel mailing list