[PATCH] fix broken build since r38235 (was: Re: [MPlayer-cvslog] r38235 - in trunk: libmpcodecs/vf_filmdint.c libmpcodecs/vf_gradfun.c libmpcodecs/vf_ow.c libmpcodecs/vf_spp.c m_config.h sub/osd.c)
Erik Auerswald <[email protected]> Sat, 23 Jan 2021 21:16:32 +0100
| Newsgroups | gmane.comp.video.mplayer.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi, On 23.01.21 19:52, Erik Auerswald wrote: > Hi, > > On 23.01.21 19:22, reimar wrote: >> Author: reimar >> Date: Sat Jan 23 20:22:15 2021 >> New Revision: 38235 > > After the recent changes, MPlayer no longer compiles for me. > since the problem occurs in the file libmpcodecs/vf_spp.c > I assume that this check in to be the cause. > >> Log: >> Switch to using DECLARE_ALIGNED for better portability. Using DECLARE_ALIGNED instead of LOCAL_ALIGNED_16 fixes the compilation error for me, please see attached patch. I hope that I've used DECLARE_ALIGNED correctly. Thanks, Erik _______________________________________________ MPlayer-dev-eng mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/mplayer-dev-eng
mplayer-fix_build_r38235-use_DECLARE_ALIGNED.patch
(text/x-patch, 561 B)
Index: libmpcodecs/vf_spp.c
===================================================================
--- libmpcodecs/vf_spp.c (revision 38237)
+++ libmpcodecs/vf_spp.c (working copy)
@@ -383,7 +383,7 @@
int x, y, i;
const int count= 1<<p->log2_count;
const int stride= is_luma ? p->temp_stride : ((width+16+15)&(~15));
- LOCAL_ALIGNED_16(uint64_t, block_align, [32]);
+ DECLARE_ALIGNED(16, uint64_t, block_align)[32];
int16_t *block = (int16_t *)block_align;
int16_t *block2= (int16_t *)(block_align+16);