[FFmpeg-devel] [PATCH 4/8] Fix the size of workspace buffers in the motion pixels decoder.

Laurent Aimar fenrir at elivagar.org
Fri Sep 30 00:53:19 CEST 2011


On Fri, Sep 30, 2011 at 12:51:20AM +0200, Michael Niedermayer wrote:
> On Fri, Sep 30, 2011 at 12:05:49AM +0200, fenrir at elivagar.org wrote:
> > From: Laurent Aimar <fenrir at videolan.org>
> > 
> > Some buffers must be mod 4 in width and/or height.
> [...]
> >      MotionPixelsContext *mp = avctx->priv_data;
> > +    int w4 = (avctx->width  + 3) & ~3;
> > +    int h4 = (avctx->height + 3) & ~3;
> 
> could use FFALIGN(), not sure if it would be clearer or more confusing
> to the average reader, thus patch applied,
 I was looking for a macro like that but didn't find it. I will keep it
in mind for the next time.

-- 
fenrir


More information about the ffmpeg-devel mailing list