[FFmpeg-devel] [PATCH] Fix warning in libavfilter/vf_scale.c
Martin Storsjö
martin
Sun Jun 27 21:04:42 CEST 2010
On Sun, 27 Jun 2010, M?ns Rullg?rd wrote:
> Eli Friedman <eli.friedman at gmail.com> writes:
>
> > Patch attached; the warning comes from the call to sws_scale on line 190.
> >
> > -Eli
> >
> > Index: libavfilter/vf_scale.c
> > ===================================================================
> > --- libavfilter/vf_scale.c (revision 23827)
> > +++ libavfilter/vf_scale.c (working copy)
> > @@ -173,7 +173,7 @@
> > ScaleContext *scale = link->dst->priv;
> > int out_h;
> > AVFilterPicRef *cur_pic = link->cur_pic;
> > - uint8_t *data[4];
> > + const uint8_t *data[4];
>
> Adding const is generally safe if it still builds and doesn't add more
> warnings elsewhere.
Applied.
// Martin
More information about the ffmpeg-devel
mailing list