Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Use aligned_malloc when using buffers with sws_scale #9623
Since ffmpeg 3 we heavily segfault under certain conditions as ffmpeg sometimes asumes 16 byte aligned memory adresses, which are normally guaranteed when using ffmpeg's alloc methods. As we supply external buffers we need to take great care.
Let's see which includes are missing for Windows, OSX and so on.
Edit: To add, I talked with the ffmpeg guys and they highly, highly suggest to use proper alignment as it will be totally slow when not doing so.
meh, this crappy ms function spread over the app like cancer. Defining a Windows function for the other platforms is rather hacky and usage of this should not continue.