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

Luca Barbato lu_zero
Sat Mar 14 20:01:36 CET 2009


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.

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

Hmm...

lu

-- 

Luca Barbato
Gentoo Council Member
Gentoo/linux Gentoo/PPC
http://dev.gentoo.org/~lu_zero





More information about the ffmpeg-devel mailing list