diff options
author | Stefan Gehrer <stefan.gehrer@gmx.de> | 2010-02-15 16:37:13 +0000 |
---|---|---|
committer | Stefan Gehrer <stefan.gehrer@gmx.de> | 2010-02-15 16:37:13 +0000 |
commit | 026b9d3c5a2460f492b96a7e37758324cc729e7e (patch) | |
tree | cd5a7ddb6f32284375645c2904e804b88fa02c17 /libavcodec | |
parent | 895844589801e249fcdccc330b364b76a5f4a931 (diff) | |
download | ffmpeg-026b9d3c5a2460f492b96a7e37758324cc729e7e.tar.gz |
avoid using DECLARE_ALIGNED on stack variable as suggested by Reimar
Originally committed as revision 21835 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/cavs.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/cavs.c b/libavcodec/cavs.c index 4b87eb657d..70677c9586 100644 --- a/libavcodec/cavs.c +++ b/libavcodec/cavs.c @@ -73,7 +73,7 @@ static inline int get_bs(cavs_vector *mvP, cavs_vector *mvQ, int b) { * */ void ff_cavs_filter(AVSContext *h, enum cavs_mb mb_type) { - DECLARE_ALIGNED_8(uint8_t, bs)[8]; + uint8_t bs[8]; int qp_avg, alpha, beta, tc; int i; @@ -93,9 +93,9 @@ void ff_cavs_filter(AVSContext *h, enum cavs_mb mb_type) { if(!h->loop_filter_disable) { /* determine bs */ if(mb_type == I_8X8) - *((uint64_t *)bs) = 0x0202020202020202ULL; + memset(bs,2,8); else{ - *((uint64_t *)bs) = 0; + memset(bs,0,8); if(ff_cavs_partition_flags[mb_type] & SPLITV){ bs[2] = get_bs(&h->mv[MV_FWD_X0], &h->mv[MV_FWD_X1], mb_type > P_8X8); bs[3] = get_bs(&h->mv[MV_FWD_X2], &h->mv[MV_FWD_X3], mb_type > P_8X8); @@ -109,7 +109,7 @@ void ff_cavs_filter(AVSContext *h, enum cavs_mb mb_type) { bs[4] = get_bs(&h->mv[MV_FWD_B2], &h->mv[MV_FWD_X0], mb_type > P_8X8); bs[5] = get_bs(&h->mv[MV_FWD_B3], &h->mv[MV_FWD_X1], mb_type > P_8X8); } - if( *((uint64_t *)bs) ) { + if(AV_RN64(bs)) { if(h->flags & A_AVAIL) { qp_avg = (h->qp + h->left_qp + 1) >> 1; SET_PARAMS; |