[FFmpeg-devel] [PATCH] Fix non-rounding up to next 16-bit aligned bug in IFF decoder

Måns Rullgård mans
Thu Apr 29 18:31:25 CEST 2010


Sebastian Vater <cdgs.basty at googlemail.com> writes:

> M?ns Rullg?rd a ?crit :
>> Sebastian Vater <cdgs.basty at googlemail.com> writes:
>>> But I assume that AVPacket->data and AVFrame->linesize[0] are aligned to
>>> 16 bytes for allowing e.g. MMX processing the image data. ;-)
>>
>> AVPacket.data has no alignment constraints.  Each line in the decoded
>> image is aligned to 8 or 16 bytes depending on things.
>
> When each line in the decoded image is aligned to at least 8 bytes, it
> should be ok...
>
> What's important is the last line, is there a padding at the end, too?

Should be.

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



More information about the ffmpeg-devel mailing list