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
146 MV_BWD_X3146 MV_BWD_X3
147};147};
148 148
149DECLARE_ALIGNED(8, typedef, struct) {149typedef struct cavs_vector {
150 int16_t x;150 int16_t x;
151 int16_t y;151 int16_t y;
152 int16_t dist;152 int16_t dist;
@@ -207,7 +207,7 @@ typedef struct AVSContext { · 54 unmodified lines
207 D is the macroblock to the top-left (0)207 D is the macroblock to the top-left (0)
208 208
209 the same is repeated for backward motion vectors */209 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];
211 cavs_vector *top_mv[2];211 cavs_vector *top_mv[2];
212 cavs_vector *col_mv;212 cavs_vector *col_mv;
213 213

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