diff options
author | Diego Biurrun <diego@biurrun.de> | 2009-03-14 19:11:56 +0000 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2009-03-14 19:11:56 +0000 |
commit | f5b2476fd322a4d36fde912cb2a30a850bd77f43 (patch) | |
tree | b2e4cc6f444ca5f6cf03f65baf964e72b586eb1e /libavcodec/ppc | |
parent | b91813b6da3df97e3bb015c492a49b6cd759ddb2 (diff) | |
download | ffmpeg-streaming-f5b2476fd322a4d36fde912cb2a30a850bd77f43.zip ffmpeg-streaming-f5b2476fd322a4d36fde912cb2a30a850bd77f43.tar.gz |
Add av_uninit to vsrcBuc variable to work around some
'may be used uninitialized' warnings.
Originally committed as revision 17961 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ppc')
-rw-r--r-- | libavcodec/ppc/h264_altivec.c | 2 | ||||
-rw-r--r-- | libavcodec/ppc/h264_template_altivec.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/ppc/h264_altivec.c b/libavcodec/ppc/h264_altivec.c index b589be2..039f7d1 100644 --- a/libavcodec/ppc/h264_altivec.c +++ b/libavcodec/ppc/h264_altivec.c @@ -201,7 +201,7 @@ void put_no_rnd_h264_chroma_mc8_altivec(uint8_t * dst, uint8_t * src, int stride 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; diff --git a/libavcodec/ppc/h264_template_altivec.c b/libavcodec/ppc/h264_template_altivec.c index 5f722d0..809b4d9 100644 --- a/libavcodec/ppc/h264_template_altivec.c +++ b/libavcodec/ppc/h264_template_altivec.c @@ -92,7 +92,7 @@ void PREFIX_h264_chroma_mc8_altivec(uint8_t * dst, uint8_t * src, 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; |