Commit c26e2abf authored by stefang's avatar stefang

avoid using DECLARE_ALIGNED on stack variable as suggested by Reimar


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@21835 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent d0d640e6
...@@ -73,7 +73,7 @@ static inline int get_bs(cavs_vector *mvP, cavs_vector *mvQ, int b) { ...@@ -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) { 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 qp_avg, alpha, beta, tc;
int i; int i;
...@@ -93,9 +93,9 @@ void ff_cavs_filter(AVSContext *h, enum cavs_mb mb_type) { ...@@ -93,9 +93,9 @@ void ff_cavs_filter(AVSContext *h, enum cavs_mb mb_type) {
if(!h->loop_filter_disable) { if(!h->loop_filter_disable) {
/* determine bs */ /* determine bs */
if(mb_type == I_8X8) if(mb_type == I_8X8)
*((uint64_t *)bs) = 0x0202020202020202ULL; memset(bs,2,8);
else{ else{
*((uint64_t *)bs) = 0; memset(bs,0,8);
if(ff_cavs_partition_flags[mb_type] & SPLITV){ 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[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); 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) { ...@@ -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[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); 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) { if(h->flags & A_AVAIL) {
qp_avg = (h->qp + h->left_qp + 1) >> 1; qp_avg = (h->qp + h->left_qp + 1) >> 1;
SET_PARAMS; SET_PARAMS;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment