[FFmpeg-cvslog] r17961 - in trunk/libavcodec/ppc: h264_altivec.c h264_template_altivec.c

diego subversion
Sat Mar 14 20:11:56 CET 2009


Author: diego
Date: Sat Mar 14 20:11:56 2009
New Revision: 17961

Log:
Add av_uninit to vsrcBuc variable to work around some
'may be used uninitialized' warnings.

Modified:
   trunk/libavcodec/ppc/h264_altivec.c
   trunk/libavcodec/ppc/h264_template_altivec.c

Modified: trunk/libavcodec/ppc/h264_altivec.c
==============================================================================
--- trunk/libavcodec/ppc/h264_altivec.c	Sat Mar 14 18:20:28 2009	(r17960)
+++ trunk/libavcodec/ppc/h264_altivec.c	Sat Mar 14 20:11:56 2009	(r17961)
@@ -201,7 +201,7 @@ void put_no_rnd_h264_chroma_mc8_altivec(
     register int loadSecond     = (((unsigned long)src) % 16) <= 7 ? 0 : 1;
     register int reallyBadAlign = (((unsigned long)src) % 16) == 15 ? 1 : 0;
 
-    vec_u8 vsrcAuc, vsrcBuc, vsrcperm0, vsrcperm1;
+    vec_u8 vsrcAuc, av_uninit(vsrcBuc), vsrcperm0, vsrcperm1;
     vec_u8 vsrc0uc, vsrc1uc;
     vec_s16 vsrc0ssH, vsrc1ssH;
     vec_u8 vsrcCuc, vsrc2uc, vsrc3uc;

Modified: trunk/libavcodec/ppc/h264_template_altivec.c
==============================================================================
--- trunk/libavcodec/ppc/h264_template_altivec.c	Sat Mar 14 18:20:28 2009	(r17960)
+++ trunk/libavcodec/ppc/h264_template_altivec.c	Sat Mar 14 20:11:56 2009	(r17961)
@@ -92,7 +92,7 @@ void PREFIX_h264_chroma_mc8_altivec(uint
     register int loadSecond = (((unsigned long)src) % 16) <= 7 ? 0 : 1;
     register int reallyBadAlign = (((unsigned long)src) % 16) == 15 ? 1 : 0;
 
-    vec_u8 vsrcAuc, vsrcBuc, vsrcperm0, vsrcperm1;
+    vec_u8 vsrcAuc, av_uninit(vsrcBuc), vsrcperm0, vsrcperm1;
     vec_u8 vsrc0uc, vsrc1uc;
     vec_s16 vsrc0ssH, vsrc1ssH;
     vec_u8 vsrcCuc, vsrc2uc, vsrc3uc;




More information about the ffmpeg-cvslog mailing list