[FFmpeg-devel] [PATCH] do not memset for a size of 0

Benoit Fouet benoit.fouet
Tue Oct 27 16:06:11 CET 2009


On Tue, 27 Oct 2009 15:07:35 +0100 Reimar D?ffinger wrote:
> > Index: pcx.c
> > ===================================================================
> > --- pcx.c	(revision 20209)
> > +++ pcx.c	(working copy)
> > @@ -71,6 +71,7 @@ static void pcx_palette(const uint8_t **
> > 
> >      for (i=0; i<pallen; i++)
> >          *dst++ = bytestream_get_be24(src);
> > +    if (pallen < 256)
> >      memset(dst, 0, (256 - pallen) * sizeof(*dst));
> >  }
> 
> Please apply, this has been around long enough.

long enough for me to have forgotten about it :)
Applied.

Ben



More information about the ffmpeg-devel mailing list