[FFmpeg-devel] [PATCH] yuv4mpeg: correctly handle chroma for odd luma sizes.

Ronald S. Bultje rsbultje at gmail.com
Tue Jun 25 00:45:28 CEST 2013


Hi,


On Mon, Jun 24, 2013 at 3:33 PM, Derek Buitenhuis <
derek.buitenhuis at gmail.com> wrote:

> On 2013-06-24 6:31 PM, Ronald S. Bultje wrote:
> > +        width  = -((-width)  >> h_chroma_shift);
> > +        height = -((-height) >> v_chroma_shift);
>
> What this does isn't exactly straightforward. Care to explain?


It rounds up instead of down.

Ronald


More information about the ffmpeg-devel mailing list