[FFmpeg-devel] [PATCH] fix some 'may be used uninitialized' warnings in AltiVec code

Diego Biurrun diego
Sat Mar 14 20:15:10 CET 2009


On Sat, Mar 14, 2009 at 08:01:36PM +0100, Luca Barbato wrote:
> Diego Biurrun wrote:
> > Here is a patch to silence some 'may be used uninitialized' warnings
> > in our AltiVec optimizations.  The libpostproc part should be safe,
> > the H.264 part depends on vec_perm, so I'm not entirely sure about it.
> > 
> 
> those "may be used uninitialized" are because that code just use part of
> the vector and ignores the part that, in fact, are really uninitialized.
> 
> The patch seems fine.

Applied.

> > BTW, the files
> > 
> > libavcodec/ppc/h264_altivec.c
> > libavcodec/ppc/h264_template_altivec.c 
> > 
> > contain massive code duplication between them.
> 
> Hmm...

So what are you going to do about it? :)

Diego




More information about the ffmpeg-devel mailing list