[FFmpeg-devel] [PATCH] [RFC] some const qualifiers for libswscale

Diego Biurrun diego
Sun May 10 16:00:23 CEST 2009


On Sun, May 10, 2009 at 02:13:29PM +0200, Reimar D?ffinger wrote:
> On Sun, May 10, 2009 at 01:58:23PM +0200, Diego Biurrun wrote:
> > This patch adds a bunch of const qualifiers throughout swscale.c.
> 
> Description does not match the code.

Bah...

> > --- libswscale/swscale.c	(revision 29287)
> > +++ libswscale/swscale.c	(working copy)
> > @@ -3402,7 +3402,7 @@
> >                                          int dstW, int dstH, enum PixelFormat dstFormat, int flags,
> >                                          SwsFilter *srcFilter, SwsFilter *dstFilter, double *param)
> >  {
> > -    static const double default_param[2] = {SWS_PARAM_DEFAULT, SWS_PARAM_DEFAULT};
> > +    static double default_param[2] = {SWS_PARAM_DEFAULT, SWS_PARAM_DEFAULT};
> >  
> >      if (!param)
> >          param = default_param;
> 
> param should be const double *.

Implemented.

Diego



More information about the ffmpeg-devel mailing list