summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorprigaux <[email protected]>2007-02-11 20:00:15 +0000
committerprigaux <[email protected]>2007-02-11 20:00:15 +0000
commita74fd5a1ec37e53fe7008f022639af6ede0e82c9 (patch)
tree0a6a32640a840b72653149aa11efa264674df976 /contrib
parentf45dfeb2afb1b0bf46054959e8ea9494f3b7d14f (diff)
Merge the 0.8.0_mpeg4ip branch into the trunk
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@285 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'contrib')
-rw-r--r--contrib/Jamfile41
-rw-r--r--contrib/patch_mpeg4ip_cygwin.patch262
-rw-r--r--contrib/version_a52dec.txt2
-rw-r--r--contrib/version_faac.txt2
-rw-r--r--contrib/version_ffmpeg.txt2
-rw-r--r--contrib/version_lame.txt2
-rw-r--r--contrib/version_libdvdcss.txt2
-rw-r--r--contrib/version_libdvdread.txt2
-rw-r--r--contrib/version_libogg.txt2
-rw-r--r--contrib/version_libsamplerate.txt2
-rw-r--r--contrib/version_libvorbis.txt2
-rw-r--r--contrib/version_mpeg2dec.txt2
-rw-r--r--contrib/version_mpeg4ip.txt1
-rw-r--r--contrib/version_x264.txt2
-rw-r--r--contrib/version_xvidcore.txt2
15 files changed, 316 insertions, 12 deletions
diff --git a/contrib/Jamfile b/contrib/Jamfile
index 33e9c2e5b..94016f02f 100644
--- a/contrib/Jamfile
+++ b/contrib/Jamfile
@@ -11,6 +11,11 @@ else
WGET = wget -O ;
}
+if $(OS) = UNKNOWN
+{
+ OS = CYGWIN ;
+}
+
# Wget rule: downloads $(<) from the link in $(>)
rule Wget
{
@@ -170,6 +175,42 @@ actions LibMp3Lame
Wget $(SUBDIR)/lame.tar.gz : $(SUBDIR)/version_lame.txt ;
LibMp3Lame $(SUBDIR)/lib/libmp3lame.a : $(SUBDIR)/lame.tar.gz ;
+# libmp4v2
+rule LibMp4v2
+{
+ Depends $(<) : $(>) ;
+ Depends lib : $(<) ;
+}
+if $(OS) != CYGWIN
+{
+ actions LibMp4v2
+ {
+ cd `dirname $(>)` && CONTRIB=`pwd` &&
+ rm -rf mpeg4ip && tar xzf mpeg4ip.tar.gz && cd mpeg4ip &&
+ ./bootstrap && make -C lib/mp4v2 libmp4v2.la &&
+ cp lib/mp4v2/.libs/libmp4v2.a $CONTRIB/lib &&
+ cp mpeg4ip_config.h include/mpeg4ip.h include/mpeg4ip_version.h \
+ include/mpeg4ip_win32.h lib/mp4v2/*.h $CONTRIB/include &&
+ strip -S $CONTRIB/lib/libmp4v2.a
+ }
+}
+else
+{
+ actions LibMp4v2
+ {
+ cd `dirname $(>)` && CONTRIB=`pwd` &&
+ rm -rf mpeg4ip && tar xzf mpeg4ip.tar.gz && cd mpeg4ip &&
+ patch -p1 < ../patch_mpeg4ip_cygwin.patch && ./bootstrap && make -C lib/mp4v2 libmp4v2.la &&
+ cp lib/mp4v2/.libs/libmp4v2.a $CONTRIB/lib &&
+ cp mpeg4ip_config.h include/mpeg4ip.h include/mpeg4ip_version.h \
+ include/mpeg4ip_win32.h lib/mp4v2/*.h $CONTRIB/include &&
+ strip -S $CONTRIB/lib/libmp4v2.a
+ }
+}
+
+Wget $(SUBDIR)/mpeg4ip.tar.gz : $(SUBDIR)/version_mpeg4ip.txt ;
+LibMp4v2 $(SUBDIR)/lib/libmp4v2.a : $(SUBDIR)/mpeg4ip.tar.gz ;
+
# libmpeg2
rule LibMpeg2
{
diff --git a/contrib/patch_mpeg4ip_cygwin.patch b/contrib/patch_mpeg4ip_cygwin.patch
new file mode 100644
index 000000000..0bc19cda6
--- /dev/null
+++ b/contrib/patch_mpeg4ip_cygwin.patch
@@ -0,0 +1,262 @@
+diff -Naur mpeg4ip/lib/mp4v2/mp4.cpp /Users/pri/t/mpeg4ip/lib/mp4v2/mp4.cpp
+--- mpeg4ip/lib/mp4v2/mp4.cpp 2005-03-30 20:41:58.000000000 +0200
++++ /Users/pri/t/mpeg4ip/lib/mp4v2/mp4.cpp 2007-02-09 22:39:28.000000000 +0100
+@@ -1678,9 +1678,9 @@
+ extern "C" bool MP4GetTrackH264SeqPictHeaders (MP4FileHandle hFile,
+ MP4TrackId trackId,
+ uint8_t ***pSeqHeader,
+- uint32_t **pSeqHeaderSize,
++ u_int32_t **pSeqHeaderSize,
+ uint8_t ***pPictHeader,
+- uint32_t **pPictHeaderSize)
++ u_int32_t **pPictHeaderSize)
+ {
+ if (MP4_IS_VALID_FILE_HANDLE(hFile)) {
+ try {
+diff -Naur mpeg4ip/lib/mp4v2/mp4.h /Users/pri/t/mpeg4ip/lib/mp4v2/mp4.h
+--- mpeg4ip/lib/mp4v2/mp4.h 2005-03-30 20:41:58.000000000 +0200
++++ /Users/pri/t/mpeg4ip/lib/mp4v2/mp4.h 2007-02-09 22:39:42.000000000 +0100
+@@ -631,9 +631,9 @@
+
+ bool MP4GetTrackVideoMetadata(MP4FileHandle hFile,
+ MP4TrackId trackId,
+- uint8_t **ppConfig,
+- uint32_t *pConfigSize);
+-
++ u_int8_t **ppConfig,
++ u_int32_t *pConfigSize);
++
+ bool MP4GetTrackESConfiguration(
+ MP4FileHandle hFile,
+ MP4TrackId trackId,
+@@ -654,9 +654,9 @@
+ bool MP4GetTrackH264SeqPictHeaders(MP4FileHandle hFile,
+ MP4TrackId trackId,
+ uint8_t ***pSeqHeaders,
+- uint32_t **pSeqHeaderSize,
++ u_int32_t **pSeqHeaderSize,
+ uint8_t ***pPictHeader,
+- uint32_t **pPictHeaderSize);
++ u_int32_t **pPictHeaderSize);
+ bool MP4GetTrackH264LengthSize(MP4FileHandle hFile,
+ MP4TrackId trackId,
+ uint32_t *pLength);
+diff -Naur mpeg4ip/lib/mp4v2/mp4container.cpp /Users/pri/t/mpeg4ip/lib/mp4v2/mp4container.cpp
+--- mpeg4ip/lib/mp4v2/mp4container.cpp 2001-11-19 18:06:58.000000000 +0100
++++ /Users/pri/t/mpeg4ip/lib/mp4v2/mp4container.cpp 2007-02-09 22:10:23.000000000 +0100
+@@ -207,7 +207,7 @@
+ u_int32_t numProperties = m_pProperties.Size();
+
+ if (numProperties == 0) {
+- WARNING(numProperties == 0);
++ //WARNING(numProperties == 0);
+ return;
+ }
+
+diff -Naur mpeg4ip/lib/mp4v2/mp4container.h /Users/pri/t/mpeg4ip/lib/mp4v2/mp4container.h
+--- mpeg4ip/lib/mp4v2/mp4container.h 2001-11-19 18:06:58.000000000 +0100
++++ /Users/pri/t/mpeg4ip/lib/mp4v2/mp4container.h 2007-02-09 22:06:42.000000000 +0100
+@@ -1,24 +1,3 @@
+-/*
+- * The contents of this file are subject to the Mozilla Public
+- * License Version 1.1 (the "License"); you may not use this file
+- * except in compliance with the License. You may obtain a copy of
+- * the License at http://www.mozilla.org/MPL/
+- *
+- * Software distributed under the License is distributed on an "AS
+- * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
+- * implied. See the License for the specific language governing
+- * rights and limitations under the License.
+- *
+- * The Original Code is MPEG4IP.
+- *
+- * The Initial Developer of the Original Code is Cisco Systems Inc.
+- * Portions created by Cisco Systems Inc. are
+- * Copyright (C) Cisco Systems Inc. 2001. All Rights Reserved.
+- *
+- * Contributor(s):
+- * Dave Mackie [email protected]
+- */
+-
+ #ifndef __MP4_CONTAINER_INCLUDED__
+ #define __MP4_CONTAINER_INCLUDED__
+
+diff -Naur mpeg4ip/lib/mp4v2/mp4descriptor.cpp /Users/pri/t/mpeg4ip/lib/mp4v2/mp4descriptor.cpp
+--- mpeg4ip/lib/mp4v2/mp4descriptor.cpp 2004-02-12 03:06:02.000000000 +0100
++++ /Users/pri/t/mpeg4ip/lib/mp4v2/mp4descriptor.cpp 2007-02-09 22:24:17.000000000 +0100
+@@ -149,7 +149,7 @@
+ u_int32_t numProperties = m_pProperties.Size();
+
+ if (numProperties == 0) {
+- WARNING(numProperties == 0);
++ //WARNING(numProperties == 0);
+ return;
+ }
+
+@@ -194,7 +194,7 @@
+ u_int32_t numProperties = m_pProperties.Size();
+
+ if (numProperties == 0) {
+- WARNING(numProperties == 0);
++ //WARNING(numProperties == 0);
+ return;
+ }
+ for (u_int32_t i = 0; i < numProperties; i++) {
+diff -Naur mpeg4ip/lib/mp4v2/mp4file.cpp /Users/pri/t/mpeg4ip/lib/mp4v2/mp4file.cpp
+--- mpeg4ip/lib/mp4v2/mp4file.cpp 2005-03-30 20:41:58.000000000 +0200
++++ /Users/pri/t/mpeg4ip/lib/mp4v2/mp4file.cpp 2007-02-09 22:44:08.000000000 +0100
+@@ -1431,7 +1431,7 @@
+ return trackId;
+ }
+
+-MP4TrackId MP4File::AddCntlTrackDefault (uint32_t timeScale,
++MP4TrackId MP4File::AddCntlTrackDefault (u_int32_t timeScale,
+ MP4Duration sampleDuration,
+ const char *type)
+ {
+@@ -1682,7 +1682,7 @@
+ (MP4Property **)&pLength) == false) ||
+ (avcCAtom->FindProperty("avcC.sequenceEntries.sequenceParameterSetNALUnit",
+ (MP4Property **)&pUnit) == false)) {
+- VERBOSE_ERROR(m_verbosity, WARNING("Could not find avcC properties"));
++ //VERBOSE_ERROR(m_verbosity, WARNING("Could not find avcC properties"));
+ return false;
+ }
+ uint32_t count = pCount->GetValue();
+@@ -1692,7 +1692,7 @@
+ for (uint32_t index = 0; index < count; index++) {
+ if (pLength->GetValue(index) == sequenceLen) {
+ uint8_t *seq;
+- uint32_t seqlen;
++ u_int32_t seqlen;
+ pUnit->GetValue(&seq, &seqlen, index);
+ if (memcmp(seq, pSequence, sequenceLen) == 0) {
+ free(seq);
+@@ -1724,8 +1724,8 @@
+ (MP4Property **)&pLength) == false) ||
+ (avcCAtom->FindProperty("avcC.pictureEntries.pictureParameterSetNALUnit",
+ (MP4Property **)&pUnit) == false)) {
+- VERBOSE_ERROR(m_verbosity,
+- WARNING("Could not find avcC picture table properties"));
++ //VERBOSE_ERROR(m_verbosity,
++ //WARNING("Could not find avcC picture table properties"));
+ return false;
+ }
+ uint32_t count = pCount->GetValue();
+@@ -1735,7 +1735,7 @@
+ for (uint32_t index = 0; index < count; index++) {
+ if (pLength->GetValue(index) == pictLen) {
+ uint8_t *seq;
+- uint32_t seqlen;
++ u_int32_t seqlen;
+ pUnit->GetValue(&seq, &seqlen, index);
+ if (memcmp(seq, pPict, pictLen) == 0) {
+ VERBOSE_WRITE(m_verbosity,
+@@ -2472,9 +2472,9 @@
+
+ bool MP4File::GetTrackH264SeqPictHeaders (MP4TrackId trackId,
+ uint8_t ***pppSeqHeader,
+- uint32_t **ppSeqHeaderSize,
++ u_int32_t **ppSeqHeaderSize,
+ uint8_t ***pppPictHeader,
+- uint32_t **ppPictHeaderSize)
++ u_int32_t **ppPictHeaderSize)
+ {
+ uint32_t count;
+
+@@ -2490,15 +2490,15 @@
+ (MP4Property **)&pSeqLen) == false) ||
+ (avcCAtom->FindProperty("avcC.sequenceEntries.sequenceParameterSetNALUnit",
+ (MP4Property **)&pSeqVal) == false)) {
+- VERBOSE_ERROR(m_verbosity, WARNING("Could not find avcC properties"));
++ //VERBOSE_ERROR(m_verbosity, WARNING("Could not find avcC properties"));
+ return false;
+ }
+ uint8_t **ppSeqHeader =
+ (uint8_t **)malloc((pSeqCount->GetValue() + 1) * sizeof(uint8_t *));
+ *pppSeqHeader = ppSeqHeader;
+
+- uint32_t *pSeqHeaderSize =
+- (uint32_t *)malloc((pSeqCount->GetValue() + 1) * sizeof(uint32_t *));
++ u_int32_t *pSeqHeaderSize =
++ (u_int32_t *)malloc((pSeqCount->GetValue() + 1) * sizeof(u_int32_t *));
+
+ *ppSeqHeaderSize = pSeqHeaderSize;
+ for (count = 0; count < pSeqCount->GetValue(); count++) {
+@@ -2513,15 +2513,15 @@
+ (MP4Property **)&pPictLen) == false) ||
+ (avcCAtom->FindProperty("avcC.pictureEntries.pictureParameterSetNALUnit",
+ (MP4Property **)&pPictVal) == false)) {
+- VERBOSE_ERROR(m_verbosity,
+- WARNING("Could not find avcC picture table properties"));
++ //VERBOSE_ERROR(m_verbosity,
++ //WARNING("Could not find avcC picture table properties"));
+ return false;
+ }
+ uint8_t
+ **ppPictHeader =
+ (uint8_t **)malloc((pPictCount->GetValue() + 1) * sizeof(uint8_t *));
+- uint32_t *pPictHeaderSize =
+- (uint32_t *)malloc((pPictCount->GetValue() + 1)* sizeof(uint32_t *));
++ u_int32_t *pPictHeaderSize =
++ (u_int32_t *)malloc((pPictCount->GetValue() + 1)* sizeof(u_int32_t *));
+ *pppPictHeader = ppPictHeader;
+ *ppPictHeaderSize = pPictHeaderSize;
+
+diff -Naur mpeg4ip/lib/mp4v2/mp4file.h /Users/pri/t/mpeg4ip/lib/mp4v2/mp4file.h
+--- mpeg4ip/lib/mp4v2/mp4file.h 2005-03-30 20:41:58.000000000 +0200
++++ /Users/pri/t/mpeg4ip/lib/mp4v2/mp4file.h 2007-02-09 22:35:21.000000000 +0100
+@@ -329,9 +329,9 @@
+ uint8_t *pLevel);
+ bool GetTrackH264SeqPictHeaders(MP4TrackId trackId,
+ uint8_t ***pSeqHeader,
+- uint32_t **pSeqHeaderSize,
++ u_int32_t **pSeqHeaderSize,
+ uint8_t ***pPictHeader,
+- uint32_t **pPictHeaderSize);
++ u_int32_t **pPictHeaderSize);
+ void GetTrackH264LengthSize(MP4TrackId,
+ uint32_t *pLength);
+ const char* GetHintTrackSdp(MP4TrackId hintTrackId);
+diff -Naur mpeg4ip/lib/mp4v2/mp4file_io.cpp /Users/pri/t/mpeg4ip/lib/mp4v2/mp4file_io.cpp
+--- mpeg4ip/lib/mp4v2/mp4file_io.cpp 2004-07-15 20:09:48.000000000 +0200
++++ /Users/pri/t/mpeg4ip/lib/mp4v2/mp4file_io.cpp 2007-02-09 22:44:47.000000000 +0100
+@@ -86,7 +86,7 @@
+ }
+
+ ASSERT(pBytes);
+- WARNING(m_numReadBits > 0);
++ //WARNING(m_numReadBits > 0);
+
+ if (pFile == NULL) {
+ pFile = m_pFile;
+diff -Naur mpeg4ip/lib/mp4v2/mp4property.cpp /Users/pri/t/mpeg4ip/lib/mp4v2/mp4property.cpp
+--- mpeg4ip/lib/mp4v2/mp4property.cpp 2004-08-23 20:28:21.000000000 +0200
++++ /Users/pri/t/mpeg4ip/lib/mp4v2/mp4property.cpp 2007-02-09 22:47:04.000000000 +0100
+@@ -636,7 +636,7 @@
+ u_int32_t numProperties = m_pProperties.Size();
+
+ if (numProperties == 0) {
+- WARNING(numProperties == 0);
++ //WARNING(numProperties == 0);
+ return;
+ }
+
+@@ -670,7 +670,7 @@
+ u_int32_t numProperties = m_pProperties.Size();
+
+ if (numProperties == 0) {
+- WARNING(numProperties == 0);
++ //WARNING(numProperties == 0);
+ return;
+ }
+
+@@ -709,7 +709,7 @@
+ u_int32_t numProperties = m_pProperties.Size();
+
+ if (numProperties == 0) {
+- WARNING(numProperties == 0);
++ //WARNING(numProperties == 0);
+ return;
+ }
+
diff --git a/contrib/version_a52dec.txt b/contrib/version_a52dec.txt
index 3aa0ed89f..37aee8622 100644
--- a/contrib/version_a52dec.txt
+++ b/contrib/version_a52dec.txt
@@ -1 +1 @@
-http://download.handbrake.dynalias.com/contrib/a52dec-0.7.4.tar.gz
+http://download.mediafork.dynalias.com/contrib/a52dec-0.7.4.tar.gz
diff --git a/contrib/version_faac.txt b/contrib/version_faac.txt
index 5974895ef..807360621 100644
--- a/contrib/version_faac.txt
+++ b/contrib/version_faac.txt
@@ -1 +1 @@
-http://download.handbrake.dynalias.com/contrib/faac-1.24.tar.gz
+http://download.mediafork.dynalias.com/contrib/faac-1.24.tar.gz
diff --git a/contrib/version_ffmpeg.txt b/contrib/version_ffmpeg.txt
index 8a76b72f7..e7934a0ee 100644
--- a/contrib/version_ffmpeg.txt
+++ b/contrib/version_ffmpeg.txt
@@ -1 +1 @@
-http://download.handbrake.dynalias.com/contrib/ffmpeg-7444.tar.gz
+http://download.mediafork.dynalias.com/contrib/ffmpeg-7444.tar.gz
diff --git a/contrib/version_lame.txt b/contrib/version_lame.txt
index d001c67be..0563f9855 100644
--- a/contrib/version_lame.txt
+++ b/contrib/version_lame.txt
@@ -1 +1 @@
-http://download.handbrake.dynalias.com/contrib/lame-3.96.1.tar.gz
+http://download.mediafork.dynalias.com/contrib/lame-3.96.1.tar.gz
diff --git a/contrib/version_libdvdcss.txt b/contrib/version_libdvdcss.txt
index 555f390eb..c10c39de2 100644
--- a/contrib/version_libdvdcss.txt
+++ b/contrib/version_libdvdcss.txt
@@ -1 +1 @@
-http://download.handbrake.dynalias.com/contrib/libdvdcss-1.2.9.tar.gz
+http://download.mediafork.dynalias.com/contrib/libdvdcss-1.2.9.tar.gz
diff --git a/contrib/version_libdvdread.txt b/contrib/version_libdvdread.txt
index ff442ba80..e230e3cb7 100644
--- a/contrib/version_libdvdread.txt
+++ b/contrib/version_libdvdread.txt
@@ -1 +1 @@
-http://download.handbrake.dynalias.com/contrib/libdvdread-20050928.tar.gz
+http://download.mediafork.dynalias.com/contrib/libdvdread-20050928.tar.gz
diff --git a/contrib/version_libogg.txt b/contrib/version_libogg.txt
index f7e457399..e7cee15a3 100644
--- a/contrib/version_libogg.txt
+++ b/contrib/version_libogg.txt
@@ -1 +1 @@
-http://download.handbrake.dynalias.com/contrib/libogg-1.1.2.tar.gz
+http://download.mediafork.dynalias.com/contrib/libogg-1.1.2.tar.gz
diff --git a/contrib/version_libsamplerate.txt b/contrib/version_libsamplerate.txt
index d8dd6a1d6..636ace2f6 100644
--- a/contrib/version_libsamplerate.txt
+++ b/contrib/version_libsamplerate.txt
@@ -1 +1 @@
-http://download.handbrake.dynalias.com/contrib/libsamplerate-0.1.2.tar.gz
+http://download.mediafork.dynalias.com/contrib/libsamplerate-0.1.2.tar.gz
diff --git a/contrib/version_libvorbis.txt b/contrib/version_libvorbis.txt
index 8761077f1..3235254e6 100644
--- a/contrib/version_libvorbis.txt
+++ b/contrib/version_libvorbis.txt
@@ -1 +1 @@
-http://download.handbrake.dynalias.com/contrib/libvorbis-1.1.1.tar.gz
+http://download.mediafork.dynalias.com/contrib/libvorbis-1.1.1.tar.gz
diff --git a/contrib/version_mpeg2dec.txt b/contrib/version_mpeg2dec.txt
index e58f080ed..ca31e0ce6 100644
--- a/contrib/version_mpeg2dec.txt
+++ b/contrib/version_mpeg2dec.txt
@@ -1 +1 @@
-http://download.handbrake.dynalias.com/contrib/mpeg2dec-20051112.tar.gz
+http://download.mediafork.dynalias.com/contrib/mpeg2dec-20051112.tar.gz
diff --git a/contrib/version_mpeg4ip.txt b/contrib/version_mpeg4ip.txt
new file mode 100644
index 000000000..a374de85f
--- /dev/null
+++ b/contrib/version_mpeg4ip.txt
@@ -0,0 +1 @@
+http://download.mediafork.dynalias.com/contrib/mpeg4ip-1.3.tar.gz \ No newline at end of file
diff --git a/contrib/version_x264.txt b/contrib/version_x264.txt
index eff0d42c3..73a659be2 100644
--- a/contrib/version_x264.txt
+++ b/contrib/version_x264.txt
@@ -1 +1 @@
-http://download.handbrake.dynalias.com/contrib/x264-r604.tar.gz
+http://download.mediafork.dynalias.com/contrib/x264-r604.tar.gz
diff --git a/contrib/version_xvidcore.txt b/contrib/version_xvidcore.txt
index 0a8812c08..8906405ef 100644
--- a/contrib/version_xvidcore.txt
+++ b/contrib/version_xvidcore.txt
@@ -1 +1 @@
-http://download.handbrake.dynalias.com/contrib/xvidcore-1.1.0.tar.gz
+http://download.mediafork.dynalias.com/contrib/xvidcore-1.1.0.tar.gz