Codderine / movist

Automatically exported from code.google.com/p/movist
GNU General Public License v3.0
0 stars 0 forks source link

update for recent ffmpeg source #214

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. follow README steps to build external libraries

What is the expected output? What do you see instead?

Expect ffmpeg to build but it doesn't.

What version of the product are you using? On what operating system?

trunk Movist, late 2010 ffmpeg source.

Please provide any additional information below.

ffmpegmt-disablelibswscale-disablepic.patch has gone stale and no longer 
applies. The attached updated version of the patch file works with current 
ffmpeg source.

Also, a few new options need to be passed when configuring ffmpeg to disable 
scaling. A patch to the build_ffmpeg_mt.sh script is attached.

Also, ffmpeg enables posix_memalign support which doesn't exist on OSX (at 
least, not on Snow Leopard). The function isn't needed because all OSX mallocs 
are 16 bytes aligned so I added a new source file with contents like this:

#include <memory.h>

void *posix_memalign(unsigned int size)
{
    return malloc(size);
}

and this fixed the "missing posix_memalign" link errors I was getting.

With those changes Movist builds for me.

Original issue reported on code.google.com by gnas...@gmail.com on 9 Dec 2010 at 2:46

Attachments:

GoogleCodeExporter commented 9 years ago
Apologies, that function should have been:

#include <memory.h>
#include <errno.h>

int posix_memalign(void **memptr, size_t alignment, size_t size)
{
    *memptr = malloc(size);
    return *memptr == NULL ? ENOMEM : 0;
}

Original comment by gnas...@gmail.com on 9 Dec 2010 at 3:34