Two huge problems:
1. aligned_alloc doesn't work when compiling VLC x64 with minGW. At least in my dev environment, which has been fine until now.
2. if I add code to the bottom of aligned_alloc to call __mingw_aligned_malloc(size, align), which was what vlc_memalign was previously doing in my environment then this is no good because it is not compatible with calling free() later, it needs to be __mingw_aligned_free.
Maybe this is why the windows nightly is currently broken (https://forum.videolan.org/viewtopic.php?f=14&t=139188)