[FFmpeg-devel] [PATCH] Fix warning in libavfilter/vf_scale.c

Måns Rullgård mans
Sun Jun 27 20:27:32 CEST 2010


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.

-- 
M?ns Rullg?rd
mans at mansr.com



More information about the ffmpeg-devel mailing list