History

avcodec/cavs: Limit align requirement to variable than type

There are another three cavs_vector variables, ff_cavs_dir_mv, ff_cavs_intra_mv and un_mv. They don't need align to 8.

Zhao Zhili committed 2 years ago

Commit fe2c9741 parent 82c208b1 file · +2 −2Browse files

Unified · Split

libavcodec/cavs.h+2−2
@@ -146,7 +146,7 @@ enum cavs_mv_loc { · 145 unmodified lines
146146 MV_BWD_X3
147147 };
148148
149−DECLARE_ALIGNED(8, typedef, struct) {
149+typedef struct cavs_vector {
150150 int16_t x;
151151 int16_t y;
152152 int16_t dist;
@@ -207,7 +207,7 @@ typedef struct AVSContext { · 54 unmodified lines
207207 D is the macroblock to the top-left (0)
208208
209209 the same is repeated for backward motion vectors */
210− cavs_vector mv[2*4*3];
210+ DECLARE_ALIGNED(8, cavs_vector, mv)[2*4*3];
211211 cavs_vector *top_mv[2];
212212 cavs_vector *col_mv;
213213

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t