On Wed, Apr 28, 2010 at 03:51:26PM +0200, Sebastian Vater wrote: > > This is not how people commonly round up to 2. Most people do > > (x+1)&~1, so you could do: Note I think this does not apply here, but you definitely should _not_ use (x+1)&~1 in FFmpeg code, use FFALIGN instead.