Re: [libav-devel] [PATCH] hevcdec: Use LOCAL_ALIGNED_* for declaring local variables with alignment

2017-03-28 Thread Diego Biurrun
On Tue, Mar 28, 2017 at 12:58:06PM +0300, Martin Storsjö wrote: > --- a/libavcodec/hevcdec.c > +++ b/libavcodec/hevcdec.c > @@ -917,8 +917,8 @@ static void hls_residual_coding(HEVCContext *s, int x0, > int y0, > -DECLARE_ALIGNED(32, int16_t, coeffs[MAX_TB_SIZE * MAX_TB_SIZE]) = { 0 }; > -

[libav-devel] [PATCH] hevcdec: Use LOCAL_ALIGNED_* for declaring local variables with alignment

2017-03-28 Thread Martin Storsjö
Not all compilers can do alignment larger than the normal stack alignment for variables on the stack. In these cases, the LOCAL_ALIGNED_* macros produce the workaround alignment wrapper consisting of a padded array and a pointer variable. This fixes the hevc fate tests on RVCT/ARMCC after adding