[2/3] hevc: Avoid using LOCAL_ALIGNED for 4 byte alignment

Message ID 20170329110232.22383-2-martin@martin.st
State Committed
Commit 26d9b60373bf45bc4f91ff6815f5fa36764d4d7b
Headers show

Commit Message

Martin Storsjö March 29, 2017, 11:02 a.m.
The data types within the MvField struct themselves imply 4 byte alignment.
---
 libavcodec/hevc_mvs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Diego Biurrun March 29, 2017, 5:37 p.m. | #1
On Wed, Mar 29, 2017 at 02:02:31PM +0300, Martin Storsjö wrote:
> The data types within the MvField struct themselves imply 4 byte alignment.
> ---
>  libavcodec/hevc_mvs.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

OK

Diego

Patch

diff --git a/libavcodec/hevc_mvs.c b/libavcodec/hevc_mvs.c
index be32e6cd40..27df7c1527 100644
--- a/libavcodec/hevc_mvs.c
+++ b/libavcodec/hevc_mvs.c
@@ -550,7 +550,7 @@  void ff_hevc_luma_mv_merge_mode(HEVCContext *s, int x0, int y0, int nPbW,
 {
     int singleMCLFlag = 0;
     int nCS = 1 << log2_cb_size;
-    LOCAL_ALIGNED(4, MvField, mergecand_list, [MRG_MAX_NUM_CANDS]);
+    MvField mergecand_list[MRG_MAX_NUM_CANDS];
     int nPbW2 = nPbW;
     int nPbH2 = nPbH;
     HEVCLocalContext *lc = &s->HEVClc;