From ec16101732ae60d71ff6cb811d033540d7ce79b4 Mon Sep 17 00:00:00 2001 From: Lyubomir Marinov Date: Thu, 19 May 2011 17:25:25 +0000 Subject: [PATCH] Updates the README on building the FFmpeg JNI library to state that (1) Mac OS X needs --enable-memalign-hack to fix a usage of posix_memalign and (2) Linux needs --enable-decoder=mjpeg to support more video capture devices. --- src/native/ffmpeg/README | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/src/native/ffmpeg/README b/src/native/ffmpeg/README index 65f62fd1c..7fc54d402 100644 --- a/src/native/ffmpeg/README +++ b/src/native/ffmpeg/README @@ -66,15 +66,22 @@ patch -Np1 -i ffmpeg-02-libavcodec_libx264.c-rtp_payload_size.patch - Windows x86: -Add --target-os=mingw32, --enable-memalign-hack, --disable-pthreads and ---enable-w32threads. +Add the following to the configure line: +--target-os=mingw32 --enable-memalign-hack --disable-pthreads --enable-w32threads x64: -Add --arch=amd64 and --enable-cross-compile to the configure line used for x86. +Add the following to the configure line used for x86: +--arch=amd64 --enable-cross-compile -- FreeBSD, Linux, Mac OS X +- FreeBSD, Linux -Add --enable-pic and --enable-pthreads. +Add the following to the configure line: +--enable-pic --enable-pthreads --enable-decoder=mjpeg --enable-parser=mjpeg + +- Mac OS X + +Add the following to the configure line: +--enable-pic --enable-pthreads --enable-memalign-hack 4. jnffmpeg