[FFmpeg-devel] [PATCH3/3] avfilter YUV aligment 32 bytes aligment for Y only and 16 bytes for UV.

Måns Rullgård mans
Tue Sep 21 19:30:27 CEST 2010

"Richard Buteau" <rbuteau at rgbnetworks.com> writes:

> Hi all,
> Some encoder don't support linesize[] that aren't multiple. As an
> example they expect 720/360/360 for yuv image or 732/368/368.
> the avfilter align all linesize on 16 byte, this make a yuv 720/368/368.
> 720 isn't a multiple of 368.
> I added alignment on 32bytes for Y only so it's always 732/368/368

Why?  Nothing requires alignment greater than 16.  If something did,
this patch would be the wrong way to fix it.

M?ns Rullg?rd
mans at mansr.com

More information about the ffmpeg-devel mailing list