diff options
author | Mans Rullgard <mans@mansr.com> | 2012-11-10 13:21:52 +0000 |
---|---|---|
committer | Mans Rullgard <mans@mansr.com> | 2012-11-12 10:31:31 +0000 |
commit | a384f6a7f73a8bd53046dd95a1ca0ac785d4add3 (patch) | |
tree | 5d61db767eb5b74cb9a92803d5673abdbfd5299a | |
parent | 031aac9861dbd2d6e195f63e585cebe711db9d49 (diff) | |
download | ffmpeg-a384f6a7f73a8bd53046dd95a1ca0ac785d4add3.tar.gz |
ppc: replace pointer casting with AV_COPY32
This removes warnings about strict aliasing violations.
Signed-off-by: Mans Rullgard <mans@mansr.com>
-rw-r--r-- | libavcodec/ppc/h264_altivec.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/ppc/h264_altivec.c b/libavcodec/ppc/h264_altivec.c index 05a5c51d38..73e2adb776 100644 --- a/libavcodec/ppc/h264_altivec.c +++ b/libavcodec/ppc/h264_altivec.c @@ -19,6 +19,7 @@ */ #include "libavutil/cpu.h" +#include "libavutil/intreadwrite.h" #include "libavutil/ppc/types_altivec.h" #include "libavutil/ppc/util_altivec.h" #include "libavcodec/dsputil.h" @@ -788,7 +789,7 @@ static inline vec_u8 h264_deblock_q1(register vec_u8 p0, alphavec = vec_splat(alphavec, 0x0); \ mask = h264_deblock_mask(p0, p1, q0, q1, alphavec, betavec); /*if in block */ \ \ - *((int *)temp) = *((int *)tc0); \ + AV_COPY32(temp, tc0); \ tc0vec = vec_ld(0, (signed char*)temp); \ tc0vec = vec_mergeh(tc0vec, tc0vec); \ tc0vec = vec_mergeh(tc0vec, tc0vec); \ |