[FFmpeg-cvslog] r23093 - trunk/libavfilter/vf_pad.c
Benoit Fouet
benoit.fouet
Wed May 12 11:08:05 CEST 2010
Hi,
On Tue, 11 May 2010 19:39:52 +0200 (CEST) bcoudurier wrote:
> Author: bcoudurier
> Date: Tue May 11 19:39:52 2010
> New Revision: 23093
>
> Log:
> silence gcc warning about potential uninitialized usage
>
> Modified:
> trunk/libavfilter/vf_pad.c
>
> Modified: trunk/libavfilter/vf_pad.c
> ==============================================================================
> --- trunk/libavfilter/vf_pad.c Tue May 11 19:25:18 2010 (r23092)
> +++ trunk/libavfilter/vf_pad.c Tue May 11 19:39:52 2010 (r23093)
> @@ -100,7 +100,7 @@ static int config_input(AVFilterLink *in
> PadContext *pad = ctx->priv;
> const AVPixFmtDescriptor *pix_desc = &av_pix_fmt_descriptors[inlink->format];
> uint8_t rgba_color[4];
> - uint8_t rgba_map[4];
> + uint8_t rgba_map[4] = {0};
> int i, is_packed_rgb = 1;
>
> switch (inlink->format) {
Unless I'm mistaken, this warning was wrong.
Is there a policy on what we do in such cases ?
If yes, then there are a bunch of them that could/should be fixed.
If no, then I don't see why this one should be treated differently.
Ben
More information about the ffmpeg-cvslog
mailing list